csp_nonce - Twig Function
Info
This feature is available in Contao 5.3 and later.
This allows you to add CSP nonces for inline styles and scripts.
Arguments
directive: The CSP directive the nonce will be generated for.
Note
Contao overwrites the csp_nonce method from nelmio/security-bundle to which the call will also be forwarded to, if
Contao’s CSP functionality is not active for the current request.