We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

I’m trying to build an Ajax/JavaScript chat API client on the Customer Portal. I got the XML p...

Accepted answer
35
Views
4
Comments
edited Sep 4, 2018 5:06AM in UI Extensibility 4 comments

Content

I’m trying to build an Ajax/JavaScript chat API client on the Customer Portal. I got the XML payloads from answer ID 8129. GetChatUrl works fine and I can retrieve the Chat URL, token and site name. I then use them in the RequestChat request. The problem is that I am getting this error:

Failed to load https://bcvipam02.rightnowtech.com/Chat-WS/services/wschat-enduser/v1_2?pool=7358:1: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://livetest-18b.custhelp.com'; is therefore not allowed access.

I am attaching a short video as well.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!