Middleware that sets a CSP policy.
CSP policy is configured through :http/csp-policy. The special value nonce
is replaced with nonce-<per-request-generated-nonce>, which can be accessed
through *csp-nonce*
Middleware that sets a CSP policy. CSP policy is configured through `:http/csp-policy`. The special value `nonce` is replaced with `nonce-<per-request-generated-nonce>`, which can be accessed through `*csp-nonce*`
(wrap-content-security-policy h)Add the Content-Security-Policy header, see configuration.
Add the Content-Security-Policy header, see configuration.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |