addAllowedImageDomain('*'); $csp->addAllowedMediaDomain('*'); $response = new TemplateResponse(Application::APP_ID, 'main'); $response->setContentSecurityPolicy($csp); return $response; } #[NoAdminRequired] #[NoCSRFRequired] #[FrontpageRoute(verb: 'GET', url: '/discover')] public function discover(): TemplateResponse { return $this->index(); } #[NoAdminRequired] #[NoCSRFRequired] #[FrontpageRoute(verb: 'GET', url: '/feed/{path}', requirements: ['path' => '.+'])] public function feed(): TemplateResponse { return $this->index(); } }