Skip to content

Commit

Permalink
Fix CSP
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Jan 30, 2024
1 parent c239922 commit 826b5ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ public function index(): TemplateResponse {

$response = new TemplateResponse(Application::APP_ID, 'main');

$policy = new ContentSecurityPolicy();
$policy->allowEvalScript(true);
$response->setContentSecurityPolicy($policy);

return $response;
}

Expand Down

0 comments on commit 826b5ff

Please sign in to comment.