Allow security filter's dispatcher types to be configured via env

This commit adds a new property, security.filter-dispatcher-types
that can be used to configure the dispatcher types of Spring
Security's filter chain. The default remains unchanged.

Closes gh-4505
This commit is contained in:
Andy Wilkinson
2015-12-01 17:30:12 +00:00
parent 8e0d3ed0eb
commit 524a32879f
4 changed files with 67 additions and 1 deletions

View File

@@ -390,6 +390,7 @@ content into your application; rather pick only the properties that you need.
security.basic.realm=Spring # HTTP basic realm name.
security.enable-csrf=false # Enable Cross Site Request Forgery support.
security.filter-order=0 # Security filter chain order.
security.filter-dispatcher-types=ASYNC, FORWARD, INCLUDE, REQUEST # Security filter chain dispatcher types.
security.headers.cache=true # Enable cache control HTTP headers.
security.headers.content-type=true # Enable "X-Content-Type-Options" header.
security.headers.frame=true # Enable "X-Frame-Options" header.