Bumps fruitcake/laravel-cors from 1.0.6 to 2.0.1.
Release notes
Sourced from fruitcake/laravel-cors's releases.
<h2>Use reflective headers/methods</h2>Uses v2.0.1 of stack-cors, re-enables reflective headers instead of wildcards.
<h2>v2.0 (2020-05-11)</h2>asm89/stack-cors 2.x is now used, with these notable changes:
<h3>Added</h3><h3>Changed</h3>
- CORS headers are better cachable now, with correct Vary headers (#asm89/stack-cors#70, #asm89/stack-cors#74)
<h2>Add headers with Event Listener</h2>
- CORS headers are added to non-Origin requests when possible (#asm89/stack-cors#73)
- Requests are no longer blocked by the server, only by the browser (#asm89/stack-cors#70)
No release notes provided.
<h2>Update max_age check, improve tests</h2>No release notes provided.
<h2>Update to v2</h2>
- Don't block CORS requests in Laravel, leave it to the browser
- Update Vary headers for better caching
- Use static/cacheable headers when possible
Changelog
Sourced from fruitcake/laravel-cors's changelog.
<h1>Change Log</h1>All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
<h2>v2.0 (2020-05-11)</h2>asm89/stack-cors 2.x is now used, with these notable changes:
<h3>Added</h3><h3>Changed</h3>
- CORS headers are better cachable now, with correct Vary headers (#asm89/stack-cors#70, #asm89/stack-cors#74)
<h2>v1.0 (2019-12-27)</h2> <h3>Breaking changes</h3>
- CORS headers are added to non-Origin requests when possible (#asm89/stack-cors#73)
- Requests are no longer blocked by the server, only by the browser (#asm89/stack-cors#70)
<h3>Added</h3>
- Adding the middleware on Route groups is no longer supported. You can use the new
pathsoption to match your routes- The config file has been changed from
camelCasetosnake_case, please update your own config.- The deprecated Lumen ServiceProvider has been removed.
- There is no need to manually configure the
corsconfig in Lumen.<h2>v0.11.0 (2017-12-xx)</h2> <h3>Breaking changes</h3>
- The
pathsoption is added to match certain routes only, while still using global middleware. This allows for better error handling.<h2>v0.9.0 (2016-03-2017)</h2> <h3>Breaking changes</h3>
- The wildcard matcher is changed. You can use
allowedOriginPatternsfor your own patterns, or simple wildcards in the normal origins. Eg.*.laravel.comshould still work.<h3>Added</h3>
- The
corsalias is no longer added by default. Use the full class or add the alias yourself.- The Lumen ServiceProvider has been removed. Both Laravel and Lumen should use
Barryvdh\Cors\ServiceProvider::class.Barryvdh\Cors\Stack\CorsServicemoves to\Barryvdh\Cors\CorsService(namespace changed).Barryvdh\Cors@addActualRequestHeaderswill automatically attached when Exception occured.
- Better error-handling when exceptions occur.
- A lot of tests, also on older Laravel versions.
Commits
Bump stack-cors v2.0.1 (#466)dbfc311Test axios (#462)7f2ac85Run on PR76742fcmove cors options to method (#461)f34414bUpdate note about update77d4a9aUpdate readme.md8cc9f7eUpdate changelog.md5f5e584Clarify patterns7dcfb1aClarify configdbb02ec[2.x] Add event listener (#450)138be6e- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)