dev-tunnels icon indicating copy to clipboard operation
dev-tunnels copied to clipboard

How to provide the token over WebSocket?

Open phryneas opened this issue 1 year ago • 4 comments
trafficstars

When making a HTTP connection, according to the documentation, I can send the token in a header like X-Tunnel-Authorization: tunnel <TOKEN>.

Now, the normal WebSocket class has no way of sending any headers.

So, how can I provide this token on a WebSocket connection?

If this is not possible yet, may I request this as a feature?

Maybe something like wss://my-id-7095.euw.devtunnels.ms/?tunnel-token=token?

phryneas avatar Sep 05 '24 13:09 phryneas