-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Vary header only for non-static origin option #288
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -175,11 +175,11 @@ test('Should support dynamic config (callback)', t => { | |||
t.equal(res.payload, 'ok') | |||
t.match(res.headers, { | |||
'access-control-allow-origin': 'example.com', | |||
vary: 'Origin', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the test case says Should support dynamic config (callback)
And should Vary on origin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@fastify/cors](https://github.com/fastify/fastify-cors) | [`8.5.0` -> `9.0.0`](https://renovatebot.com/diffs/npm/@fastify%2fcors/8.5.0/9.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@fastify%2fcors/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@fastify%2fcors/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@fastify%2fcors/8.5.0/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@fastify%2fcors/8.5.0/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>fastify/fastify-cors (@​fastify/cors)</summary> ### [`v9.0.0`](https://github.com/fastify/fastify-cors/releases/tag/v9.0.0) [Compare Source](https://github.com/fastify/fastify-cors/compare/v8.5.0...v9.0.0) #### What's Changed - chore(deps-dev): bump tsd from 0.29.0 to 0.30.0 by [@​dependabot](https://github.com/dependabot) in [https://github.com/fastify/fastify-cors/pull/286](https://github.com/fastify/fastify-cors/pull/286) - Add Vary header only for non-static origin option by [@​saschanaz](https://github.com/saschanaz) in [https://github.com/fastify/fastify-cors/pull/288](https://github.com/fastify/fastify-cors/pull/288) #### New Contributors - [@​saschanaz](https://github.com/saschanaz) made their first contribution in [https://github.com/fastify/fastify-cors/pull/288](https://github.com/fastify/fastify-cors/pull/288) **Full Changelog**: fastify/fastify-cors@v8.5.0...v9.0.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/tomacheese/telcheck). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE1My4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Checklist
npm run test
andnpm run benchmark
and the Code of conduct
Fixes #287