Skip to content
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

How to bypass CORS? #129

Open
hvta opened this issue Apr 11, 2018 · 1 comment
Open

How to bypass CORS? #129

hvta opened this issue Apr 11, 2018 · 1 comment
Labels

Comments

@hvta
Copy link

hvta commented Apr 11, 2018

I'd like to use the WS listener with socket.io on the client side (where the WS and HTTP servers are under different domains).
I get a message saying thet Access-Control-Allow-Origin header is not set.
How can it be set on the srver side?

@hvta hvta changed the title How to bypass CORP? How to bypass CORS? Apr 11, 2018
@vtortola
Copy link
Owner

You can hook into the HTTP negotiation with https://github.com/vtortola/WebSocketListener/wiki/Hooking-into-the-HTTP-negotiation

However, as far as I remember, socket.io is more than just a websocket. In the other hand, this component is pure raw websocket protocol, no fallback to other transports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants