websocket icon indicating copy to clipboard operation
websocket copied to clipboard

Support Authorization header

Open benjamin-bergia opened this issue 8 years ago • 2 comments

I am trying to pass my user credentials to my websocket server using the url ws://username:[email protected]. Unfortunately on the server side I don't see any Authorization header.

I initially thought about an old chromium issue but I have the exact same issue on FIrefox.

It would be very nice to support HTTP basic auth during upgrade request or even better, allow us to pass additional headers (maybe in the low level API).

benjamin-bergia avatar May 08 '17 14:05 benjamin-bergia

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

process-bot avatar May 08 '17 14:05 process-bot

This seems to be unsolvable, as the JS API itself doesn't support setting any headers:

https://stackoverflow.com/questions/22383089/is-it-possible-to-use-bearer-authentication-for-websocket-upgrade-requests/26123316#26123316

phile314-fh avatar Oct 30 '18 06:10 phile314-fh