« Back to Installation

RE: Unable to make CAXL calls using cross domain scripting

Combination View Flat View Tree View
Threads [ Previous | Next ]
We are trying to implement a web based commicator using Cisco Unified Presence Server 8.0 , without using a Reverse Proxy. The documentation available at developer.cisco.com suggests us to use the complete URL (including the server name) in the httpBindingURL and the httpBindingURL_secondary parameters. Inspite of making these changes, when we try to perform a call, we get a HTTP 400 BAD REQUEST and we see the following message in the browser console.
 
XMLHttpRequest cannot load http://<CUPS_Server_Name>:7335/httpbinding. Origin <Host machine> is not allowed by Access-Control-Allow-Origin. 
 
Can you please help us with this issue. The Web application works fine with the Reverse Proxy.

Vimod,
Could you please post your configuration here?
One quick check, when you hit your proxy server, you should see the XMPP page redirected correctly.

Howard

Vimod,
Could you please post your configuration here?
One quick check, when you hit your proxy server, you should see the XMPP page redirected correctly.

Howard

 
 
Hi Howard, 
 
   Thanks for your response. 
 
   The following are the configurations
 
   httpBindingURL: http://<CUP_Server_IP>:7335/httpbinding
   httpBindingURL_secondary: http://<CUP_Server_IP>:7335/httpbinding
   serviceDiscoveryEnabled: false
 
   jabberwerx._config.serviceDiscoveryEnabled = false;
   jabberwerx._config.httpBindingURL = "/httpbinding";
 
 
   We have a single CUP instance in our lab and hence the serviceDiscovery has been disabled. Also we are trying to avoid the usage of a proxy server. The Application is working fine when there is a Proxy Server between the web application and the CAXL layer.
 
Thanks, 
Vimod

Vimod,
Can you check this setting?
unsecureAllowed: true

Howard

Vimod,
Can you check this setting?
unsecureAllowed: true

Howard


 
Hi Howard,
 
    Thanks for your response, but inspite of adding the above mentioned change, we are still seeing the same error message in the logs. Please let me know in case you need more details from my side. Also Howard, is CORS supported on CUPS 8.0.2 ?
 
Thanks and Regards,
Vimod


Also Howard, is CORS supported on CUPS 8.0.2 ?

Hi Vimod,
Good quesiton!!
Looks like the version is not supported, and the proxy is needed...
http://developer.cisco.com/web/cupapi/caxl-compatibility
Based on the matrix, CUPS 8.0.2 is not running at CAXL 8.5.1 (the one support CORS).
 

unsecureAllowed: true

This setting is to allow the no-secured connection to be used.
 
Hope this help
 
Howard