From 92477123b788c7266ec622bcbceaaa0a56d35da8 Mon Sep 17 00:00:00 2001 From: Pierre Cadeot Date: Mon, 25 Jan 2021 08:41:25 +0400 Subject: [PATCH] fixes #31442 access control allow origin /edispatcher/api/public/hello --- .../src/Cadoles/EdispatcherBundle/Controller/ApiController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ninegate-1.0/src/Cadoles/EdispatcherBundle/Controller/ApiController.php b/src/ninegate-1.0/src/Cadoles/EdispatcherBundle/Controller/ApiController.php index 90925d4f..ab9b7729 100755 --- a/src/ninegate-1.0/src/Cadoles/EdispatcherBundle/Controller/ApiController.php +++ b/src/ninegate-1.0/src/Cadoles/EdispatcherBundle/Controller/ApiController.php @@ -557,6 +557,7 @@ $api('$id',data);"; public function helloAction() { $reponse = new Response('ninegate', Response::HTTP_OK); + $reponse->headers->set('Access-Control-Allow-Origin', '*'); return $reponse; }