ContentSecurityPolicyHandler

ContentSecurityPolicyHandler

class ContentSecurityPolicyHandler

Handles Content-Security-Policy HTTP header for the WebProfiler Bundle.

Methods

__construct(NonceGenerator $nonceGenerator)
array getNonces(Request $request, Response $response)

Returns an array of nonces to be used in Twig templates and Content-Security-Policy headers.