Skip to content

Commit

Permalink
cors
Browse files Browse the repository at this point in the history
  • Loading branch information
mrothauer committed Feb 2, 2024
1 parent 73184fd commit 6c737af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Controller/WorkshopsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 6c737af

Please sign in to comment.