"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 :(
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 executingCorsListener::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 :(