Skip to main content
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.
4 respostas
  1. 4 de abr. de 2016, 20:04

    You can’t do it from the client side, there are really 2 ways to do this for a web app, 1) install a proxy on your server to pass the REST calls through or 2) if you are creating an MV* app create a controller with all the REST calls

    Bern Rudisill

    CMS Developer

    Bisk Education, Inc.

    9417 Princess Palm Avenue

    Tampa, FL 33619

    • 813.621.6200 x6248

    •

    bern-rudisill@bisk.com
0/9000