Skip to content

Commit

Permalink
Resolve #634
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Nov 6, 2022
1 parent 95ce1b1 commit 84e0fa5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function index()

$csp = new ContentSecurityPolicy();
$csp->addAllowedScriptDomain("'self'");
$csp->useStrictDynamic(true);
\method_exists($csp, 'useStrictDynamic') && $csp->useStrictDynamic(true); // NC24+
$csp->allowEvalScript(true); // $csp->addAllowedScriptDomain("'unsafe-eval'");
$csp->addAllowedStyleDomain("'self'");
$response->setContentSecurityPolicy($csp);
Expand Down

0 comments on commit 84e0fa5

Please sign in to comment.