Re:Server-Sent Events: an alternative to WebSockets
by charlietran on Saturday February 12, 2022 @05:48PM
(#30317158)
The workaround/hack is to send your token via the "Sec-WebSocket-Protocol" header, which is the one header you're allowed to set in browser when opening a connection. The catch is that your WebSocket server needs to echo this back on a successful connection.
[ Parent
| on HN ]
There are no comments on this comment yet.