Correctly add CORS header in responseFilter

This commit is contained in:
Cedric Ziel
2020-06-22 11:34:07 +02:00
parent 8ea413da09
commit 6af5a3bcf4

View File

@@ -51,7 +51,7 @@ class Kernel extends BaseKernel implements EventSubscriberInterface
$response->headers->add([
'Access-Control-Allow-Origin' => '*',
'Access-Control-Allow-Methods: *',
'Access-Control-Allow-Methods' => '*',
]);
}