the CSPConfig to use for processing rules.
Inspects the request header, and returns a CSPResult iff the request should be subject to CSP processing.
Inspects the request header, and returns a CSPResult iff 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.
a request header
Some(CSPResult) if the processor is enabled for this request, otherwise None
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.