Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Update CorsListener.php
Browse files Browse the repository at this point in the history
  • Loading branch information
adelinerobinet authored Jan 6, 2020
1 parent f5b6df8 commit 8617b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EventListener/CorsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function onKernelException(ExceptionEvent $event): void
if ($response) {
$response->headers->set('Access-Control-Allow-Origin', '*');
$response->headers->set('Access-Control-Allow-Methods', 'GET,POST,PUT,PATCH');
$response->headers->set('Access-Control-Allow-Headers', 'content-type');
$response->headers->set('Access-Control-Allow-Headers', 'Authorization,Content-Type');
}
}

Expand Down Expand Up @@ -62,4 +62,4 @@ public function onKernelResponse(ResponseEvent $event): void
$response->headers->set('Access-Control-Allow-Headers', 'content-type');
}
}
}
}

0 comments on commit 8617b5c

Please sign in to comment.