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: https://developer.cisco.com/site/jabber-guestsdk/documents/guest-server-api/v10_0_2-10_6_8/ https://developer.cisco.com/site/jabber-guestsdk/documents/guest-server-api/v10_6_9/. 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.