AnswerBun.com

Live Agent REST and CORS

Salesforce Asked by Bern Rudisill on December 16, 2020

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.

One Answer

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

https://github.com/pepefloyd/LiveAgentChatClient

Answered by PepeFloyd on December 16, 2020

Add your own answers!

Related Questions

Named Credential authentication with GoToWebinar (OAuth2)

1  Asked on September 13, 2020 by deployment-failure

       

standard controller with extension

1  Asked on September 6, 2020 by vivian

     

Using a literal string in SELECT statement

2  Asked on August 27, 2020 by ssk

 

Change Import File Logic

0  Asked on August 27, 2020 by joo

   

Dynamically get Modified fields in trigger

1  Asked on July 24, 2020 by user52080

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP