OpenChat icon indicating copy to clipboard operation
OpenChat copied to clipboard

CORS issue on server

Open codebanesr opened this issue 2 years ago • 4 comments

Worked perfectly on my local machine, but when i deploy the application on remote server, i get the following cors error. How can i fix this ?

Access to XMLHttpRequest at 'http://localhost:8000/api/chat/send' from origin 'http://20.11..:8000' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space local.local.

codebanesr avatar Jul 16 '23 02:07 codebanesr

You need to setup your base url in chat.js file. replace http://localhost:8000 with your server's base url and port on which the server is running on

codebanesr avatar Jul 17 '23 20:07 codebanesr

Como saber si mi cel está siendo intervenido remotamente

Laptop1710 avatar Jul 18 '23 02:07 Laptop1710

Como saber si mi cel está siendo intervenido remotamente

Laptop1710 avatar Jul 18 '23 02:07 Laptop1710

@codebanesr exactly.

I am leaving this one open to document it on docs.openchat.so (work in progress)

gharbat avatar Jul 18 '23 19:07 gharbat