Skip to content

Commit

Permalink
modify CORS
Browse files Browse the repository at this point in the history
add CORS for all requests as listener
  • Loading branch information
labudzinski committed Jun 13, 2024
1 parent 354211d commit d00a8e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EventListener/CorsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit d00a8e8

Please sign in to comment.