mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-09 16:28:00 +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 = new ContentSecurityPolicy();
|
||||||
$csp->addAllowedScriptDomain("'self'");
|
$csp->addAllowedScriptDomain("'self'");
|
||||||
$csp->useStrictDynamic(true);
|
\method_exists($csp, 'useStrictDynamic') && $csp->useStrictDynamic(true); // NC24+
|
||||||
$csp->allowEvalScript(true); // $csp->addAllowedScriptDomain("'unsafe-eval'");
|
$csp->allowEvalScript(true); // $csp->addAllowedScriptDomain("'unsafe-eval'");
|
||||||
$csp->addAllowedStyleDomain("'self'");
|
$csp->addAllowedStyleDomain("'self'");
|
||||||
$response->setContentSecurityPolicy($csp);
|
$response->setContentSecurityPolicy($csp);
|
||||||
|
|
Loading…
Reference in a new issue