-
Notifications
You must be signed in to change notification settings - Fork 18k
x/net/websocket: WebSocket listener should not require Origin request header #6361
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
Labels
Milestone
Comments
After reading through the package docs more thoroughly, I found this comment on the Handler type: "Handler is a simple interface to a WebSocket browser client. It checks if Origin header is valid URL by default. ... if you want to accept non-browser client, which doesn't send Origin header, you could use Server . that doesn't check origin in its Handshake." So while I think the docs could be more up-front about this, it's not an error in the code. |
Merged into #10102. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by Jens.Alfke:
The text was updated successfully, but these errors were encountered: