This commit is contained in:
Fabien Potencier 2020-07-23 08:37:54 +02:00
parent 564550bbf8
commit 87a5135306

View File

@ -128,10 +128,10 @@ class ContentSecurityPolicyHandler
$headers = $this->getCspHeaders($response); $headers = $this->getCspHeaders($response);
$types = [ $types = [
'script-src' => 'csp_script_nonce', 'script-src' => 'csp_script_nonce',
'script-src-elem' => 'csp_script_nonce', 'script-src-elem' => 'csp_script_nonce',
'style-src' => 'csp_style_nonce', 'style-src' => 'csp_style_nonce',
'style-src-elem' => 'csp_style_nonce' 'style-src-elem' => 'csp_style_nonce',
]; ];
foreach ($headers as $header => $directives) { foreach ($headers as $header => $directives) {