Skip to content

Commit

Permalink
Fix empty screen
Browse files Browse the repository at this point in the history
The pdf package need javascript eval.

Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Mar 22, 2024
1 parent 2a70c00 commit 7bb3c33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Middleware/InjectionMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ public function afterException($controller, $methodName, \Exception $exception):
);

$policy = new ContentSecurityPolicy();
$policy->allowEvalScript(true);
$policy->addAllowedFrameDomain('\'self\'');
$response->setContentSecurityPolicy($policy);
return $response;
Expand Down

0 comments on commit 7bb3c33

Please sign in to comment.