-
Notifications
You must be signed in to change notification settings - Fork 36
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
Origin header for WebSocket Upgrade request always starts with "http" #723
Comments
I'm also having this issue, is there any way to resolve it? |
You can set the Something like this:
I think that was our workaround. |
Thanks, I'm using a Spring WebSocketSompClient, but was able to pass in headers as well to the connect method.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am getting a 403 Forbidden response during WebSocket Upgrade request when connecting to a server via HTTPS (instead of 101).
The reason is a wrong "Origin" header. The header is set in method
org.glassfish.tyrus.core.Handshake.updateHostAndOrigin(final UpgradeRequest upgradeRequest)
.The Origin header is always set to scheme "http" no matter which scheme was used originally:
requestHeaders.put(UpgradeRequest.ORIGIN_HEADER, Collections.singletonList("http://" + host));
The text was updated successfully, but these errors were encountered: