From d00a8e8a3fa0b87658e0c29ebf839aefe0e6f702 Mon Sep 17 00:00:00 2001 From: Dominik Labudzinski Date: Thu, 13 Jun 2024 17:16:28 +0200 Subject: [PATCH] modify CORS add CORS for all requests as listener --- src/EventListener/CorsListener.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/EventListener/CorsListener.php b/src/EventListener/CorsListener.php index 56ca762..9f182ca 100644 --- a/src/EventListener/CorsListener.php +++ b/src/EventListener/CorsListener.php @@ -82,6 +82,7 @@ public function onKernelResponse(ResponseEvent $event): void $crossOriginHeaders['Access-Control-Allow-Methods'] = implode(',', $crossOriginHeaders['Access-Control-Allow-Methods']); } + $event->getResponse()->headers->set('X-Powered-By', 'https://brandoriented.io'); $event->getResponse()->headers->add($crossOriginHeaders); } }