Ring middleware for adding security-related headers to API responses.
Ring middleware for adding security-related headers to API responses.
(add-security-headers handler)
Add HTTP security and cache-busting headers.
Add HTTP security and cache-busting headers.
(security-headers &
{:keys [allow-iframes? allow-cache?]
:or {allow-iframes? false allow-cache? false}})
Fetch a map of security headers that should be added to a response based on the passed options.
Fetch a map of security headers that should be added to a response based on the passed options.
(ssl-certificate-public-key)
(ssl-certificate-public-key new-value)
Base-64 encoded public key for this sites SSL certificate.Specify this to enable HTTP Public Key Pinning.See http://mzl.la/1EnfqBf for more information.
ssl-certificate-public-key
is a string Setting. You can get its value by calling:
(ssl-certificate-public-key)
and set its value by calling:
(ssl-certificate-public-key <new-value>)
You can also set its value with the env var MB_SSL_CERTIFICATE_PUBLIC_KEY
.
Clear its value by calling:
(ssl-certificate-public-key nil)
Its default value is nil
.
Base-64 encoded public key for this sites SSL certificate.Specify this to enable HTTP Public Key Pinning.See http://mzl.la/1EnfqBf for more information. `ssl-certificate-public-key` is a string Setting. You can get its value by calling: (ssl-certificate-public-key) and set its value by calling: (ssl-certificate-public-key <new-value>) You can also set its value with the env var `MB_SSL_CERTIFICATE_PUBLIC_KEY`. Clear its value by calling: (ssl-certificate-public-key nil) Its default value is `nil`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close