Std.Http.Server.Security
4 public declarations
- constantTimeCompare
&Str -> &Str -> BoolCompares tokens in constant time to prevent side-channel timing attacks.
- generateNonce
Int -> StrGenerates a hexadecimal nonce for per-request CSP inline script/style authorization.
- strictSecurityHeaders
Str -> Array[(Str, Str)]Generates defense-in-depth HTTP security headers with strict CSP.
- verifyOrigin
Option[Str] -> Option[Str] -> Str -> BoolValidates that mutation requests originate from the expected host.
