Hello Li,

That's a good question, I don't think Knox currently passes session data
around, can you open up a JIRA I'll take a look at it.

Best,
Sandeep

On Sun, Feb 26, 2017 at 9:54 PM, Li Zhou <[email protected]> wrote:

> Hi, guys:
>
>     I have a web application with websocket, I'm using knox to proxy the
> app, have 2 services, one for http, and the other for websocket. But seems
> the websocket can't get the value JSESSIONID in cookie from the knox, I
> checked in the browser, it did send cookie correctly. The request from
> browser shows as below, but after knox proxy, I can't get the cookies.
>
>
> Request URL:wss://9.30.109.105:8443/gateway/default/message-
> service/messages/topic?name=sqlEditor
> Request Method:GET
> Status Code:101 Switching Protocols
>
> Response Headers
> view source
> Connection:Upgrade
> Date:Mon, 27 Feb 2017 02:11:29 GMT
> Sec-WebSocket-Accept:KPpUPgOW3IZT9M9KlxRAn7JVBYQ=
> Upgrade:WebSocket
>
> Request Headers
> view source
> Accept-Encoding:gzip, deflate, sdch, br
> Accept-Language:zh-CN,zh;q=0.8
> Authorization:Basic YWRtaW46YWRtaW4tcGFzc3dvcmQ=
> Cache-Control:no-cache
> Connection:Upgrade
> Cookie:JSESSIONID=1balehb45f8z91drorxev1om1d
> Host:9.30.109.105:8443
> Origin:https://9.30.109.105:8443
> Pragma:no-cache
> Sec-WebSocket-Extensions:permessage-deflate; client_max_window_bits
> Sec-WebSocket-Key:gUYyWYAMCa6JbnJ4jNiVhA==
> Sec-WebSocket-Version:13
> Upgrade:websocket
> User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML,
> like Gecko) Chrome/55.0.2883.87 Safari/537.36
>
> How can I configure knox websocket service to pass the cookies? Thanks in
> advance.
>
>
>

Reply via email to