From 6c737af0b2f12df816e8d8ef5e17d37ecf2db689 Mon Sep 17 00:00:00 2001 From: mrothauer Date: Fri, 2 Feb 2024 22:17:06 +0100 Subject: [PATCH] cors --- src/Controller/WorkshopsController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Controller/WorkshopsController.php b/src/Controller/WorkshopsController.php index 48d622384..d200483fc 100644 --- a/src/Controller/WorkshopsController.php +++ b/src/Controller/WorkshopsController.php @@ -396,6 +396,11 @@ public function ajaxGetWorkshopsAndUsersForTags() { public function getWorkshopsWithCityFilter() { + $this->response = $this->response->cors($this->request) + ->allowOrigin(['*']) + ->allowMethods(['GET']) + ->build(); + $this->request = $this->request->withParam('_ext', 'json'); $city = $this->request->getParam('city');