NelmioCorsBundle

Adds CORS (Cross-Origin Resource Sharing) headers support in your Symfony application

MIT License

Downloads
68M
Stars
1.9K
Committers
47

Bot releases are visible (Hide)

NelmioCorsBundle - 2.5.0 Latest Release

Published by Seldaek 4 months ago

What's Changed

Full Changelog: https://github.com/nelmio/NelmioCorsBundle/compare/2.4.0...2.5.0

NelmioCorsBundle - 2.4.0

Published by Seldaek 11 months ago

What's Changed

  • Added Symfony 7 support (#193)
  • Dropped Symfony 4 support (#193)
  • Added bundle config (#184)

Full Changelog: https://github.com/nelmio/NelmioCorsBundle/compare/2.3.1...2.4.0

NelmioCorsBundle - 2.3.1

Published by Seldaek over 1 year ago

NelmioCorsBundle -

Published by Seldaek over 1 year ago

  • Downgraded CacheableResponseVaryListener's priority from 0 to -10 to ensure it runs after FrameworkExtraBundle listeners have set their cache headers (#179)
  • Added optional logging support if you inject a Logger into the CorsListener you can get debug info about the whole CORS decision process (#173)
  • Added support for setting expose_headers to a wildcard '*' which exposes all headers, this works as long as allow_credentials is not enabled as per the spec (#132)
  • Added skip_same_as_origin flag (default to true which is the old behavior) to allow opting out of skipping the CORS headers in the response if the Origin matches the application's hostname (#178)
  • Fixed ProviderMock having an invalid return type (#169)
  • Dropped support for Symfony 4.3 and 5.0 to 5.3
NelmioCorsBundle - 2.2.0

Published by Seldaek almost 3 years ago

  • Added support for Symfony 6
NelmioCorsBundle - 2.1.1

Published by Seldaek over 3 years ago

NelmioCorsBundle - 2.1.0

Published by Seldaek about 4 years ago

  • Added Vary: Origin header to cacheable responses to make sure proxies cache them correctly
NelmioCorsBundle - 2.0.1

Published by Seldaek almost 5 years ago

  • Reverted CorsListener priority change as it was interfering with normal operations. The priority is back at 250.
NelmioCorsBundle - 2.0.0

Published by Seldaek almost 5 years ago

  • BC Break: Downgraded CorsListener priority from 250 to 28, this should not affect anyone but could be a source in case of strange bugs
  • BC Break: Removed support for Symfony <4.3
  • BC Break: Removed support for PHP <7.1
  • Added support for Symfony 5
  • Added support for configuration via env vars
  • Changed the code to avoid mutating the EventDispatcher at runtime
  • Changed the code to avoid returning Access-Control-Allow-Origin: null headers to mark blocked requests
NelmioCorsBundle -

Published by Seldaek over 5 years ago

  • Fixed preflight request handler hijacking regular non-CORS OPTIONS requests.
NelmioCorsBundle -

Published by dunglas over 5 years ago

  • Compatibility with Symfony 4.1
  • Fixed preflight responses to always include Origin in the Vary HTTP header
NelmioCorsBundle - 1.5.4

Published by dunglas almost 7 years ago

  • Compatibility with Symfony 4
NelmioCorsBundle - 1.5.3

Published by Seldaek over 7 years ago

  • Fixed regression in 1.5.2
NelmioCorsBundle - 1.5.2

Published by Seldaek over 7 years ago

  • Fixed bundle initialization in case paths is empty
NelmioCorsBundle - 1.5.1

Published by Seldaek over 7 years ago

  • Fixed forced_allow_origin_value to always set the header regardless of CORS, so that requests can properly be cached even if they are not always accessed via CORS
NelmioCorsBundle -

Published by Seldaek almost 8 years ago

  • Added an forced_allow_origin_value option to force the value that is returned, in case you cache responses and can not have the allowed origin automatically set to the Origin header
  • Fixed Access-Control-Allow-Headers being sent even when it was empty
  • Fixed listener priority down to 250 (This may be BREAKING depending on what you do with your own listeners, but should be fine in most cases, just watch out).
NelmioCorsBundle -

Published by Seldaek almost 9 years ago

  • Fixed requirements to allow Symfony3
NelmioCorsBundle - 1.3.3

Published by Seldaek almost 10 years ago

  • Fixed a security regression in 1.3.2 that allowed GET requests to be executed from any domain
NelmioCorsBundle - 1.4.0

Published by Seldaek almost 10 years ago

  • Added an origin_regex option to allow defining origins based on regular expressions
NelmioCorsBundle - 1.3.2

Published by Seldaek about 10 years ago

  • Remove 403 on non-OPTIONS requests that have an invalid origin header