From 7bb3c33d677b86ba8eeef7a20cad1f2d228ac05c Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Fri, 22 Mar 2024 09:08:58 -0300 Subject: [PATCH] Fix empty screen The pdf package need javascript eval. Signed-off-by: Vitor Mattos --- lib/Middleware/InjectionMiddleware.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Middleware/InjectionMiddleware.php b/lib/Middleware/InjectionMiddleware.php index 70f7081d2e..dfd70fb554 100644 --- a/lib/Middleware/InjectionMiddleware.php +++ b/lib/Middleware/InjectionMiddleware.php @@ -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;