diff --git a/src/Symfony/Bundle/WebProfilerBundle/Csp/ContentSecurityPolicyHandler.php b/src/Symfony/Bundle/WebProfilerBundle/Csp/ContentSecurityPolicyHandler.php index d27db85c9c..1742b32d12 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Csp/ContentSecurityPolicyHandler.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Csp/ContentSecurityPolicyHandler.php @@ -128,10 +128,10 @@ class ContentSecurityPolicyHandler $headers = $this->getCspHeaders($response); $types = [ - 'script-src' => 'csp_script_nonce', + 'script-src' => 'csp_script_nonce', 'script-src-elem' => 'csp_script_nonce', - 'style-src' => 'csp_style_nonce', - 'style-src-elem' => 'csp_style_nonce' + 'style-src' => 'csp_style_nonce', + 'style-src-elem' => 'csp_style_nonce', ]; foreach ($headers as $header => $directives) {