From 4f7fa2524b132427c5b62defae04f391ab6b9527 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;