You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In chat room, user send message through STOMP protocol websocket.
At message handler @MessageMapping(value = "/chat/message"), Front-server request to Chat-server for storing a chat message.
Chat-server needs cookie for acknowledging a user's identification. But Front-server cannot send cookie to Chat-server beacuse of httpOnly=true
As far as I know, httpOnly=true repeatedly means sending cookies only with http protocol. It is never included because the message is sent via ws://....
So my question is
How can I deliver all the way through Front-server, backend-server using STOMP when token cookie's httpOnly is true?
The text was updated successfully, but these errors were encountered:
At the very first websocket handshake, normally request first with the http protocol.
beforeHandshake runs in first request as interceptor and gets Token from cookie, maps it to websocket session. So from now, all packets will be send with session.
@MessageMapping(value = "/chat/message")
, Front-server request to Chat-server for storing a chat message.httpOnly=true
As far as I know, httpOnly=true repeatedly means sending cookies only with http protocol. It is never included because the message is sent via
ws://...
.So my question is
The text was updated successfully, but these errors were encountered: