diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 75aaa7e1ea..aef5fb8059 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -175,7 +175,7 @@ public function sign($uuid): TemplateResponse { $response = new TemplateResponse(Application::APP_ID, 'external', [], TemplateResponse::RENDER_AS_BASE); $policy = new ContentSecurityPolicy(); - $policy->addAllowedFrameDomain('\'self\''); + $policy->allowEvalScript(true); $response->setContentSecurityPolicy($policy); return $response; @@ -263,7 +263,7 @@ public function signAccountFile($uuid): TemplateResponse { $response = new TemplateResponse(Application::APP_ID, 'external', [], TemplateResponse::RENDER_AS_BASE); $policy = new ContentSecurityPolicy(); - $policy->addAllowedFrameDomain('\'self\''); + $policy->allowEvalScript(true); $response->setContentSecurityPolicy($policy); return $response;