I have an issues with the library not adding CORS headers when the request is blocked by Symfony Firewall. Access-Control-Allow-Origin: http://localhost is present on valid requests but missing when I call the API endpoint with an invalid token. I would need this CORS header on that response as well.
Is it not expected to have these headers on that type of response?
I can create my own exception listener but I would rather have Nelmio handling it.
Hi.
I have an issues with the library not adding CORS headers when the request is blocked by Symfony Firewall.
Access-Control-Allow-Origin: http://localhost
is present on valid requests but missing when I call the API endpoint with an invalid token. I would need this CORS header on that response as well.Is it not expected to have these headers on that type of response?
I can create my own exception listener but I would rather have Nelmio handling it.
My configuration is;