I am trying to create a chat client using the SalesForce Live Agent REST API but I am running into an issue with CORS. 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 but this causes a few other issues.


No, it doesn't. The Live Agent REST API was not designed with browser clients in mind, for that you would be expected to use the Deployment/Pre-Chat APIs.

You can see an example of the REST API usage here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.