Spring Boot, Websockets cannot obtain user (i.e, java.security.Principal) from Session
问题 Working with Spring Boot 1.2.1.RELEASE and Spring Websockets . Having a deployment runtime issue where when running embedded Jetty 9 , I cannot fake a user ( java.security.Principal ) successfully when app deployed anywhere else but localhost. I have consulted http://docs.spring.io/spring/docs/current/spring-framework-reference/html/websocket.html#websocket-stomp-authentication http://docs.spring.io/spring/docs/current/spring-framework-reference/html/websocket.html#websocket-server-runtime