You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
2.1 KiB

3 years ago
  1. # Change Log
  2. All notable changes to this project will be documented in this file.
  3. The format is based on [Keep a Changelog](http://keepachangelog.com/)
  4. and this project adheres to [Semantic Versioning](http://semver.org/).
  5. ## v2.0 (2020-05-11)
  6. [asm89/stack-cors 2.x](https://github.com/asm89/stack-cors/releases/tag/2.0.0) is now used, with these notable changes:
  7. ### Added
  8. - CORS headers are better cachable now, with correct Vary headers (#https://github.com/asm89/stack-cors/pull/70, #https://github.com/asm89/stack-cors/pull/74)
  9. ### Changed
  10. - CORS headers are added to non-Origin requests when possible (#https://github.com/asm89/stack-cors/pull/73)
  11. - Requests are no longer blocked by the server, only by the browser (#https://github.com/asm89/stack-cors/pull/70)
  12. ## v1.0 (2019-12-27)
  13. ### Breaking changes
  14. - Adding the middleware on Route groups is no longer supported. You can use the new `paths` option to match your routes
  15. - The config file has been changed from `camelCase` to `snake_case`, please update your own config.
  16. - The deprecated Lumen ServiceProvider has been removed.
  17. - There is no need to manually configure the `cors` config in Lumen.
  18. ### Added
  19. - The `paths` option is added to match certain routes only, while still using global middleware. This allows for better error handling.
  20. ## v0.11.0 (2017-12-xx)
  21. ### Breaking changes
  22. - The wildcard matcher is changed. You can use `allowedOriginPatterns` for your own patterns,
  23. or simple wildcards in the normal origins. Eg. `*.laravel.com` should still work.
  24. ## v0.9.0 (2016-03-2017)
  25. ### Breaking changes
  26. - The `cors` alias is no longer added by default. Use the full class or add the alias yourself.
  27. - The Lumen ServiceProvider has been removed. Both Laravel and Lumen should use `Barryvdh\Cors\ServiceProvider::class`.
  28. - `Barryvdh\Cors\Stack\CorsService` moves to `\Barryvdh\Cors\CorsService` (namespace changed).
  29. - `Barryvdh\Cors@addActualRequestHeaders` will automatically attached when Exception occured.
  30. ### Added
  31. - Better error-handling when exceptions occur.
  32. - A lot of tests, also on older Laravel versions.