Add properties for content security policy
Add `content-security-policy` and `content-security-policy-mode` `security.header` properties and update auto-configuration to apply them when specified. Fixes gh-7373 Closes gh-7357
This commit is contained in:
committed by
Phillip Webb
parent
de26b22fa4
commit
d7bbea63b7
@@ -431,6 +431,8 @@ content into your application; rather pick only the properties that you need.
|
||||
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-security-policy= # Value for content security policy header.
|
||||
security.headers.content-security-policy-mode=default # Content security policy mode (default, report-only).
|
||||
security.headers.content-type=true # Enable "X-Content-Type-Options" header.
|
||||
security.headers.frame=true # Enable "X-Frame-Options" header.
|
||||
security.headers.hsts= # HTTP Strict Transport Security (HSTS) mode (none, domain, all).
|
||||
|
||||
Reference in New Issue
Block a user