refacto: remove old debug csp for vue devtools
All checks were successful
repod / xml (push) Successful in 31s
repod / php (push) Successful in 1m21s
repod / nodejs (push) Successful in 1m58s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-02-07 18:34:14 +01:00
parent c413e0cb1a
commit 6ce5c0c199

View File

@ -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);