nelmio / NelmioCorsBundle

Adds CORS (Cross-Origin Resource Sharing) headers support in your Symfony application
https://symfony.com/bundles/NelmioCorsBundle/
MIT License
1.89k stars 108 forks source link

Firefox expose_headers #132

Closed ndoulgeridis closed 1 year ago

ndoulgeridis commented 5 years ago

Only on Firefox, Chrome works fine, when I use:

expose_headers: ['*']

xhr.getAllResponseHeaders() does not return all headers even if on network tab I see them fine... I see only Cache-Contro and Content-Type.

I have to exclusivelly name every custom header in expose_headers: ['custom-1', 'custom-2'] ... to work in Firefox.

Is there a workaround? Anyone knows why this is happening?

Firefox version: 68.0.1