-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Websocket handshake is failing with reverse proxy & HTTP Basic authentication #1167
Comments
CommaFeed is not doing anything fancy with the websocket connection (https://github.com/Athou/commafeed/blob/master/commafeed-client/src/hooks/useWebSocket.ts), Since you're saying the app works fine except the websocket connection, |
I don't know if it's related to this but I'm trying to get the new WS connections working through apache proxy as well. I noticed that the ws connection doesn't seem to be honoring the "applicationContextPath" setting from the config. The ws connection is requesting |
You're right, the path was missing from the websocket URL, d9a9a01 should fix this, thanks! I'm not sure this is the problem encountered by @alexmaret since the hostname in the example is |
Can reproduce this issue with Caddy too, here's a sample config
|
Describe the bug
I'm running Commafeed behind an Apache reverse proxy, using HTTP Basic authentication, with the following configuration:
Everything works fine, except for the websocket handshake which is repeated over and over again every second.
Browser Request:
Server Response:
Comparing the requests to the ones on commafeed.com, it seems the only notable difference is the Basic authentication and the missing cookie. Looks like commafeed does not set a cookie when using Basic authentication. Could this be the problem somehow?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The websocket connection negotiation should succeed.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: