-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
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
No 'Access-Control-Allow-Origin' header is present on the requested resource (socket.io) #1611
Comments
what about the correct origins in |
They're the same (save for the delimiter). |
My origins did not include the port number in |
https://github.com/theoctal/livenote/blob/master/app.js#L11 look here. The issue is essentially solved by setting middleware for express. This makes good example for those who want to know about how to set middleware. |
@adityapatadia I tried that, and it didn't work. |
@lwansbrough nailed it. CORS is port sensitive. |
I've got a problem which is outlined here: socketio/socket.io-client#641
I've set the correct origins in
config/sockets.js
but the issue persists for that file alone. Seems to be a bug in socket.io - any workarounds?The text was updated successfully, but these errors were encountered: