1. 20 7月, 2015 2 次提交
  2. 17 7月, 2015 1 次提交
  3. 14 7月, 2015 1 次提交
  4. 13 7月, 2015 1 次提交
    • S
      Avoid rejecting same-origin requests detected as CORS requests · 84138abf
      Sebastien Deleuze 提交于
      Browsers like Chrome or Safari include an Origin header for same-origin
      POST/PUT/DELETE requests, not only for cross-origin requests.
      
      Before this commit, these same-origin requests would have been detected
      as potential cross-origin requests, and rejected if the same-origin domain
      is not part of the configured allowedOrigins.
      
      This commit avoid to reject same-origin requests by reusing the logic
      introduced in Spring 4.1 for detecting reliably Websocket/SockJS
      same-origin requests with the WebUtils.isValidOrigin() method. This
      logic has been extracted in a new WebUtils.isSameOrigin() method.
      
      Issue: SPR-13206
      84138abf
  5. 10 7月, 2015 2 次提交
    • S
      Polish CORS support · 882fe129
      Sebastien Deleuze 提交于
      882fe129
    • S
      Introduce CorsFilter and CorsConfigurationMapping · cd9b3903
      Sebastien Deleuze 提交于
      This commit introduces the following changes:
       - The new CorsConfigurationMapping class allows to share the mapped
         CorsConfiguration logic between AbstractHandlerMapping and CorsFilter
       - In AbstractHandlerMapping, the Map<String, CorsConfiguration>
         corsConfiguration property has been renamed to corsConfigurations
       - CorsFilter allows to process CORS requests at filter level, using any
         CorsConfigurationSource implementation (for example
         CorsConfigurationMapping)
      
      Issue: SPR-13192
      cd9b3903
  6. 07 7月, 2015 4 次提交
  7. 06 7月, 2015 2 次提交
  8. 04 7月, 2015 1 次提交
  9. 01 7月, 2015 1 次提交
  10. 30 6月, 2015 2 次提交
  11. 29 6月, 2015 1 次提交
    • B
      Fix conditional requests support for HttpEntity · 39d689da
      Brian Clozel 提交于
      Prior to this commit, `HttpEntityMethodProcessor` would rely on
      `ServletWebRequest` to process conditional requests and with incoming
      `"If-Modified-Since"` / `"If-None-Match"` request headers.
      
      This approach is problematic since in that class:
      
      * response is wrapped in a `ServletServerHttpResponse`
      * this wrapped response does not write response headers right away
      * `ServletWebRequest.checkNotModified` methods can't apply their
      logic with incomplete response headers
      
      This solution adds some minimal code duplication and applies
      the conditional request logic within the Processor.
      
      A possible alternative would be to improve the
      `ServletServerHttpResponse$ServletResponseHttpHeaders` implementation
      with write methods - but this solution would only work for Servlet 3.x
      applications.
      
      Issue: SPR-13090
      39d689da
  12. 26 6月, 2015 1 次提交
  13. 20 6月, 2015 1 次提交
    • S
      Polish CORS support classes · de9f2787
      Sam Brannen 提交于
      - Simplified "check" algorithms in CorsConfiguration
      
      - Improved robustness of setter methods in CorsConfiguration in order to
        avoid attempts to modify immutable lists
      
      - Improved CORS documentation and fixed typo
      
      - Introduced constants in CorsConfiguration
      
      - Removed auto-boxing in CorsRegistration
      de9f2787
  14. 19 6月, 2015 1 次提交
  15. 18 6月, 2015 1 次提交
  16. 16 6月, 2015 3 次提交
    • R
      Add AsyncHandlerMethodReturnValueHandler · 210e10c6
      Rossen Stoyanchev 提交于
      Before this change HandlerMethodReturnValueHandler's were invoked in a
      specific order (type-based, annotation-based, custom). However handlers
      that deal with asynchronous return value handling need to always be
      considered first. This affects custom handlers in particular since they
      are normally ordered last.
      
      This change introduces an AsyncHandlerMethodReturnValueHandler
      sub-interface with a single method to determine if the return value is
      asynchronous and if it is to look for a matching handler only among
      those that are of type AsyncHandlerMethodReturnValueHandler.
      
      Issue: SPR-13083
      210e10c6
    • J
      Polishing · ce7cc79e
      Juergen Hoeller 提交于
      ce7cc79e
    • R
      Missing path variable is now a 500 error · 4b05bda0
      Rossen Stoyanchev 提交于
      Before this change a missing path variable value resulted in a 400
      error where in fact the error is due to a mismatch between the
      declared @PathVariable and the URI template, i.e. a 500 error.
      
      This change introduced a MissingPathVariableException as a sub-class
      of ServletRequestBindingException (the exception previously thrown)
      and results in a response status code of 500 by default.
      
      Issue: SPR-13121
      4b05bda0
  17. 13 6月, 2015 1 次提交
    • S
      Polish @CrossOrigin · 2b339db5
      Sam Brannen 提交于
      - origin --> origins
      - method --> methods
      - constants are now actually constant (i.e., static final)
      2b339db5
  18. 11 6月, 2015 4 次提交
  19. 10 6月, 2015 1 次提交
    • A
      Support Forwarded-Header in UriComponentsBuilder · 4611d058
      Arjen Poutsma 提交于
      This commit introduces support for RFC 7239: Forwarded HTTP Extension in
      the UriComponentsBuilder. Unfortunately, RFC 7239 is not a complete
      replacement for the X-Forwarded-* headers: specifically, there is not
      direct replacement for X-Forwarded-Port. The JIRA contains more
      information.
      
      Issue: SPR-11856
      4611d058
  20. 05 6月, 2015 2 次提交
  21. 01 6月, 2015 4 次提交
  22. 31 5月, 2015 3 次提交