Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

CORS issue on server #122

Open
codebanesr opened this issue Jul 16, 2023 · 4 comments
Open

CORS issue on server #122

codebanesr opened this issue Jul 16, 2023 · 4 comments

Comments

@codebanesr
Copy link
Contributor

codebanesr commented Jul 16, 2023

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
Copy link
Contributor Author

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

@Laptop1710
Copy link

Como saber si mi cel está siendo intervenido remotamente

1 similar comment
@Laptop1710
Copy link

Como saber si mi cel está siendo intervenido remotamente

@gharbat
Copy link
Member

gharbat commented Jul 18, 2023

@codebanesr exactly.

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

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants