class DefaultCSPProcessor extends CSPProcessor
Ordering
- Alphabetic
- By Inheritance
Inherited
- DefaultCSPProcessor
- CSPProcessor
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
Value Members
- def process(requestHeader: RequestHeader): Option[CSPResult]
Inspects the request header, and returns a CSPResult if the request should be subject to CSP processing.
Inspects the request header, and returns a CSPResult if the request should be subject to CSP processing.
If the request header has a CSP Nonce already defined, then the processor will carry the existing nonce through in the result, otherwise a new nonce will be generated.
- requestHeader
a request header
- returns
Some(CSPResult) if the processor is enabled for this request, otherwise None
- Definition Classes
- → CSPProcessor
The default CSP processor. This handles processing of a CSP Nonce and hashes into a Content-Security-Policy series of directives, based off the CSPConfig.
If a request has the attribute RequestAttrKey.CSPNonce, then that nonce is used. Otherwise, a nonce is generated from 16 bytes of SecureRandom.