addAllowedConnectDomain('cdn.emulatorjs.org'); $csp->addAllowedConnectDomain('blob:'); $csp->addAllowedWorkerSrcDomain('blob:'); /** @psalm-suppress DeprecatedMethod */ $csp->allowEvalScript(true); $response = new TemplateResponse(Application::APP_ID, 'index'); $response->setHeaders([ 'Cross-Origin-Opener-Policy' => 'same-origin', 'Cross-Origin-Embedder-Policy' => 'require-corp', ]); $response->setContentSecurityPolicy($csp); return $response; } }