-
1
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
1
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Poly Video Conferencing
- Collaboration & Conferencing Platforms
- Using Javascript and Cross Domain Scripting with the Poycom ...

Create an account on the HP Community to personalize your profile and ask a question

08-16-2012 09:42 AM
Using Javascript to get started with our Polycom Real Presence API is one of the quickest and easiest ways to get stared with the API. Unfortunately, it isn't always easy creating web applications using Javascript and make AJAX calls due to an issue called Cross Domain Scripting, a security feature. For more information on this security issue/feature (same origin policy) please refer to http://en.wikipedia.org/wiki/Same_origin_policy
Since you cannot often host web applications on a host name equivalent to one of the Polycom Real Presence infrastructure devices, you might find yourself having to use a proxy for the REST commands. There are many examples on the web of proxy's that can be used to get past these issues. Here are two:
http://benalman.com/projects/php-simple-proxy/
or since I'm a big jquery fan. This example also uses cURL within PHP, which is one of the most powerful and easiest ways of accomplishing our goals...
http://www.paulund.co.uk/make-cross-domain-ajax-calls-with-jquery-and-php
Let me know of any questions and your thoughts!
Raj Madugula