Expand description
Content-Security-Policy construction and nonce generation. CSP nonce generation and policy construction.
Structs§
- CspNonce
- A validated CSP nonce.
- Invalid
Nonce - Returned by
CspNonce::parsefor a value that is not safe to interpolate.
Functions§
- build_
csp_ header - Build a strict Content-Security-Policy header value.
- generate_
csp_ nonce - Generate a cryptographically random CSP nonce (base64, 44 chars).