Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Websocket fallback to xhr-polling b/c of missing authorization header when server behind basic_auth #575

LowPowerLab opened this Issue · 2 comments

2 participants


I have an nginx server that proxies the websocket to a backend. All behind HTTPS.
Without basic auth enabled, establishes a websocket connection, very fast.
However if I enable basic auth in nginx, it seems the Authorization header is only sent in the initial request, then the websocket request fails because of the missing 401 header, causing to fallback to xhr polling, which is slower.
I would expect to include the auth header in all requests when one is present in the initial request.


@rauchg rauchg closed this

Hi guille, do you know if this was addressed in any prior release since I opened this ticket?


In 1.0 the connection should be fast, since it'll start with polling. WebSocket won't allow us to include the Authorization header, though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.