A type safe configuration object for setting security headers.
SecurityHeaders trait.
SecurityHeaders trait. The default case class doesn't use it, but if you create a class which may return different values based off the header and the result, this is where to start.
The case class that implements the filter.
The case class that implements the filter. This gives you the most control, but you may want to use the apply() method on the companion singleton for convenience.
Parses out a SecurityHeadersConfig from play.api.Configuration (usually this means application.conf).
This class sets a number of common security headers on the HTTP request.
This class sets a number of common security headers on the HTTP request.
NOTE: Because these are security headers, they are "secure by default." If the filter is applied, but these fields are NOT defined in Configuration, the defaults on the filter are NOT omitted, but are instead set to the strictest possible value.
A type safe configuration object for setting security headers.
"X-Frame-Options":
"X-XSS-Protection":
"X-Content-Type-Options"
"X-Permitted-Cross-Domain-Policies".
"Content-Security-Policy"