diff --git a/src/Controller/ContentApiController.php b/src/Controller/ContentApiController.php index 426a8d9..b8c183f 100644 --- a/src/Controller/ContentApiController.php +++ b/src/Controller/ContentApiController.php @@ -18,7 +18,9 @@ private function handle(Request $request){ $readers = $this->getParameter('content_api_readers'); $this->frontendApi = new FrontendApi($readers); $this->container->get('contao.framework')->initialize(); - return $this->json($this->frontendApi->handle($request)); + $response = $this->json($this->frontendApi->handle($request)); + $response->headers->add(['Access-Control-Allow-Origin' => '*']); + return $response; } /**