Closed akiselevych closed 4 months ago
Hello!
The headers you set with these options aren't HTTP headers, but STOMP headers. You should see them show up in the CONNECT frame sent as the first message over the websocket connection (or other transport).
As far as i know, it is not possible to set HTTP-Headers on the Requests used to establish a websocket connection, as a limitation of the browser APIs. I don't think stompjs exposes an option to set headers on the info endpoint requests either.
Understand, thank you !
Hello ! I pass Authorization header into connectHeaders but handshake request not containing it.
This how my code looks like"![image](https://github.com/SvenKirschbaum/react-stomp-hooks/assets/140167030/580b738f-7873-4768-81fc-f4a7e04452f1)
console log of THIS
But handshake request not containing it![image](https://github.com/SvenKirschbaum/react-stomp-hooks/assets/140167030/dfcd5fa7-f10d-498b-bfb5-a59f2f37445f)