From 6ce5c0c1998dec43f825dcac95f873c1fbca1e01 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 7 Feb 2024 18:34:14 +0100 Subject: [PATCH] refacto: remove old debug csp for vue devtools --- lib/Controller/PageController.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 4de3880..abab04e 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -32,12 +32,6 @@ class PageController extends Controller $csp->addAllowedImageDomain('*'); $csp->addAllowedMediaDomain('*'); - if ($this->config->getSystemValueBool('debug')) { - // Unblock HMR requests. - $csp->addAllowedConnectDomain('*'); - $csp->addAllowedScriptDomain('*'); - } - $response = new TemplateResponse(Application::APP_ID, 'main'); $response->setContentSecurityPolicy($csp);