I found that the javascript websocket API does not support adding custom headers, Is there any specific reason for this. In addition, wanted to know whether is there any javascript libraries that could help to set authorization headers.
After going through some implementation, I found most of the suggestion were to use authorization parameters(token) as query parameter. Therefore I wanted to know whether wont this cause any security vulnerabilities?