ContentSecurityPolicy v1.0.3 API Reference
Modules
Provides functions for interacting with Content Security Policies.
Contains functions useful for interacting with Content Security Policy directives.
Plug which adds a random nonce to the content security policy. Sets this
nonce in Plug.assigns
under the csp_nonce
key.
Plug which adds a source value to the given directive.
Plug that sets the default policy and ensures that the proper
"content-security-policy"
header is set before the response is sent.
Defines the ContentSecurityPolicy.Policy
struct which represents a given
Content Security Policy.