CORS error while embedding chat widget

Hi Team,

Can anyone please let me know how to resolve this CORS error while embedding the Genesys chat widget on a simple HTML page in localhost? I have used the chat widget code generated in Developer Tools. This error is occurring after providing the required first name and last name fields in the form.

Thanks.

Hello,

I assume you are opening your html page as a file, from Firefox or another browser (but not Chrome).
This is a limitation/constraint in Firefox.

If you want to open the html page as a file, try with Chrome. I think Chrome is more flexible regarding this.

Or host you webpage on a WebServer so it can be retrieved via http scheme.
A simple nodejs express app is enough to serve your html page and make it available via http://localhost/...

Regards,

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.