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

Add an option to force Access-Control-Allow-Origin value #67

Closed Oliboy50 closed 7 years ago

Oliboy50 commented 8 years ago

Why

See https://github.com/nelmio/NelmioCorsBundle/issues/66

First commit

Feature + preflight requests tested

Second commit

"Normal" response tested + refactoring of CorsListener::options attribute

=> because $this->options was always empty while executing CorsListener::onKernelResponse()... I don't think it's the case in production environment (I hope so), but at least in test environment: I just couldn't find a way to make it work the way it was done before :(

Oliboy50 commented 8 years ago

any news for this?

Seldaek commented 8 years ago

No sorry been really busy lately haven't had time to review this in depth yet.

Seldaek commented 7 years ago

Thanks