1. 27 10月, 2014 2 次提交
    • R
      Replace "if(" with "if (" · da612d07
      Rossen Stoyanchev 提交于
      da612d07
    • S
      Add an option to set an Origin whitelist for Websocket and SockJS · 743356fa
      Sebastien Deleuze 提交于
      This commit introduces a new OriginHandshakeInterceptor. It filters
      Origin header value against a list of allowed origins.
      
      AbstractSockJsService as been modified to:
       - Reject CORS requests with forbidden origins
       - Disable transport types that does not support CORS when an origin
         check is required
       - Use the Origin request header value instead of "*" for
         Access-Control-Allow-Origin response header value
         (mandatory when  Access-Control-Allow-Credentials=true)
       - Return CORS header only if the request contains an Origin header
      
      It is possible to configure easily this behavior thanks to JavaConfig API
      WebSocketHandlerRegistration#addAllowedOrigins(String...) and
      StompWebSocketEndpointRegistration#addAllowedOrigins(String...).
      It is also possible to configure it using the websocket XML namespace.
      
      Please notice that this commit does not change the default behavior:
      cross origin requests are still enabled by default.
      
      Issues: SPR-12226
      743356fa
  2. 21 10月, 2014 1 次提交
  3. 16 7月, 2014 1 次提交
  4. 03 12月, 2013 2 次提交
  5. 27 11月, 2013 1 次提交
    • P
      General polish of new 4.0 classes · 15698860
      Phillip Webb 提交于
      Apply consistent styling to new classes introduced in Spring 4.0.
      
      - Javadoc line wrapping, whitespace and formatting
      - General code whitespace
      - Consistent Assert.notNull messages
      15698860
  6. 08 11月, 2013 1 次提交
  7. 02 9月, 2013 1 次提交
    • R
      Polish WebSocket/STOMP Java config · e21bbdd9
      Rossen Stoyanchev 提交于
      Ensure configuration provided for WebSocketHandler's (eg interceptors,
      or HandshakeHandler) are passed on to the SockJsService if congiured.
      
      Better separate Servlet-specific parts of the configuration to make it
      more obvious where non-Servlet alternatives could fit in.
      
      Add more tests.
      
      Improve WebSocket integration tests.
      e21bbdd9
  8. 29 8月, 2013 1 次提交
  9. 28 8月, 2013 1 次提交