NativeWebSocket icon indicating copy to clipboard operation
NativeWebSocket copied to clipboard

constructor parameter "headers" not working on WebGL

Open veboys opened this issue 4 years ago • 1 comments

On webgl, client has passed some custom headers, but server has'nt received them.

veboys avatar Jun 22 '20 12:06 veboys

Hi @veboys, the browser does not allow sending custom HTTP headers through WebSocket requests. I think what you could do is sending the data you need through query string instead of a browser environment. https://stackoverflow.com/a/4361358/892698

endel avatar Jun 22 '20 14:06 endel