I just added this package to our project today and am getting normal validation and execution errors from our controller actions unless I specifically send a response after validating a CORS request in the CorsListener class:
protected function getPreflightResponse(Request $request, array $options)
{
// ...
$response->setContent('ok'); // <-- added this
return $response;
}
Not sure if this is a normal symfony issue or something with this package though…
I just added this package to our project today and am getting normal validation and execution errors from our controller actions unless I specifically send a response after validating a CORS request in the
CorsListener
class:Not sure if this is a normal symfony issue or something with this package though…
This is the config I am using: