mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-08 15:57:37 +08:00
Resolve #634
This commit is contained in:
parent
95ce1b15ef
commit
84e0fa5756
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ class PageController extends Controller
|
|||
|
||||
$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);
|
||||
|
|
Loading…
Reference in a new issue