title: Spring WebSocket. Get access to Cookie in Config
body: <p>I'm trying to configure WebSocket via Spring with STOMP, OAuth 2 and SockJS.
  New spec <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/websocket.html#websocket-stomp-authentication-token-based" rel="nofollow noreferrer">tells us</a> how to implement it using Interceptors.
  The case is: if user is authenticated there is an Bearer Token in Native header of CONNECT request and there is no problem to set principal via Token.
  But my task is to use BrowserToken for unauthorized users (which is saved in Cookies). How can i get it from the request?</p>