Skip to content

Commit

Permalink
Replace self by eval
Browse files Browse the repository at this point in the history
Signed-off-by: Hugo Nogueira <nogueiradeoliveira@gmail.com>
  • Loading branch information
hugouke authored and backportbot-libresign[bot] committed Jan 30, 2024
1 parent 826b5ff commit dbc89e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit dbc89e9

Please sign in to comment.