diff --git a/lib/Controller/CityController.php b/lib/Controller/CityController.php index 3d81f26..19145cc 100644 --- a/lib/Controller/CityController.php +++ b/lib/Controller/CityController.php @@ -43,7 +43,15 @@ class CityController extends IntermediateController { * @NoCSRFRequired */ public function index () { - return new TemplateResponse($this->appName, 'main'); + $response = new TemplateResponse($this->appName, 'main'); // templates/main.php + + $csp = new StrictContentSecurityPolicy(); + $csp->allowEvalScript(); + $csp->allowInlineStyle(); + + $response->setContentSecurityPolicy($csp); + + return $response; } /**