You need to sign in to do that
Don't have an account?
Bern Rudisill
Live Agent REST and CORS
I am trying to create a web chat client using the SalesForce Live Agent REST API but I am running into an issue with CORS. Is tehre a way to get SalesForce to enable CORS or does the REST API support JSONP, if so do you have some examples, if not then what would be the proper way to use the Live Agent REST API with JavaScript? I am currently using a proxy I quickly created on my server which seems to be working but does cause a little slowdown.
You should be able to follow the example here (it should be the same for the Live Agent REST API as it is for Chatter, etc). https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/extend_code_cors.htm
I'm trying to implement a live agent client with angular and making ajax calls to the live agent rest api. I'm getting the same 400 error on the preflight request. Do you know if there is any solution for this?