-
-
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
add option to pass Origin header in ws_connect #607
Conversation
Should we support |
I think no, in regular I don't know any use cases of
Maybe we should also add |
According to RFC WS server may require authorization, so adding other headers ( |
add option to pass Origin header in ws_connect
I've merged the PR. |
I used |
I have opened bug report for adding |
This PR allows passing of Origin header to
ws_connect()
.I believe WebSockets specification requires passing of Origin header (https://tools.ietf.org/html/rfc6455#section-4.2.2).
Some servers requires proper Origin headers (according to specification), so without this patch it's not possible to connect to such servers using
ws_connect()
.