We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The server is working fine and there's no error showing but still messages are not sending. it's working fine on localhost though
The text was updated successfully, but these errors were encountered:
I am having same problem but my console is showing "Access to XMLHttpRequest at 'https://ch4t-it.herokuapp.com/socket.io/?EIO=4&transport=polling&t=NR9OV9U' from origin 'https://chat-n-chat.netlify.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource."
Sorry, something went wrong.
You solve that by initiating io like so
const io = socketIo(httpServer, { cors: { origin: "*", methods: ["GET", "POST"], credentials: true, }, });
In your index.js file.
No branches or pull requests
The server is working fine and there's no error showing but still messages are not sending. it's working fine on localhost though
The text was updated successfully, but these errors were encountered: