xatkit-bot-platform / xatkit-react-platform

Receive and send messages from our React-based chatbox
https://xatkit.com/
Other
4 stars 1 forks source link

CORS errors when using a remote Xatkit server #4

Closed gdaniel closed 4 years ago

gdaniel commented 4 years ago

The platform assumes that the chat component will be displayed on a page with the same base url as the Xatkit server, which is not the case in general (it is if we use the example located at /admin, but not when the component is embedded in an existing website).

We need to add a configuration key to tell Xatkit which client URL it should accept.

Reported by @jcabot