WebSocket Stomp over SockJS - http custom headers
问题 I'm using stomp.js over SockJS in my javascript client. I'm connecting to websocket using stompClient.connect({}, function (frame) { stomp over sockJS connection has 2 http requests: request to /info http upgrade request the client sends all cookies. I would like to also send custom headers (e.g. XSRF header) but didn't find a way to do that. Will appreciate any help. 回答1: @Rohitdev So basically you can't send any HTTP headers using stompClient, because STOMP is layer over websockets, and