|
|
|
|
|
by whilenot-dev
536 days ago
|
|
> Once the connection is upgraded, you loose all metadata included in the HTTP headers (because it’s not HTTP) and all protections relying on it. The Upgrade request is HTTP and you can extract all needed metadata from there and store it server side as needed. Those metadata wouldn't change during an active WebSocket session anyway, would they? |
|
In a browser however, you can't. It typically sets very little headers itself, and doesn't allow you to add custom headers.