Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
New Member

Cisco Jabber guest API HTTP request errors

I am trying to create a front end that would allow users to create jabber guest links using the jabber guest API, and I have run into some problems when it comes to sending data via a HTTP request to the server which hosts the guest API.

I first attempted this using ajax to send a post request containing the data from the server my application was hosted on, to the separate server the Jabber Guest API was hosted on. I did this based on the documentation: and I got the following Error Message:

XMLHttpRequest cannot load https://[IP address of the server that is hosting the guest API]/cjg-api/rest/links/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://[Server hosting my application]' is therefore not allowed access. The response had HTTP status code 401.

I then attempted to send the request from the same server, to the same separate server hosting the API using C#.NET and got this error message:

Has anyone ever encountered these errors before or does anyone know how to solve them?

I'm pretty sure it's a server problem, but if you would like to see my code I can put it up for you.

bare in mind that I have limited knowledge of server configurations, and I also do not have access to change the configurations of the server hosting the guest API

So I don't know how I would go about adding the Access-Control-Allow-Origin header or validating the remote certificate.

Thank-you for taking the time to read through my problem.

Cisco Employee


     jabberGuest doesn’t allow Access-Control-Allow-Origin for link post/put/get operations. So invoke the api embed in a web page from your own server will get the No ‘Access-Control-Allow-Origin’….. You can invoke the api by the server side, which means that you can send the request to your own server  and invoke the api proxy to server. I have just test in this way and the server can work fine. You know these apis require authorization , so you should have the username and password of the jabber guest web admin page.  You can download some Demo from the flowing links:
The first one is a java web demo and the second is a python file. Both of them contain how to invoke the link api using username and password from the server side. 
Hopeful this can help you. Any questions can feedback here. Thanks
CreatePlease to create content