Skip to content
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 headers for CORS preflight responses #216

Merged
merged 2 commits into from
Feb 7, 2022

Conversation

shepmaster
Copy link
Contributor

Motivation

While migrating from Corsware to Axum, my tests detected that Corsware applied the Vary header to both the preflight response and actual response.

Solution

This does the same for tower-http.

@davidpdrsn davidpdrsn merged commit fad88e3 into tower-rs:master Feb 7, 2022
@davidpdrsn
Copy link
Member

Thanks!

@shepmaster shepmaster deleted the vary-preflight branch February 7, 2022 15:19
davidpdrsn added a commit that referenced this pull request Feb 8, 2022
Fixed

- Add `Vary` headers for CORS preflight responses ([#216])

[#216]: #216
@davidpdrsn davidpdrsn mentioned this pull request Feb 8, 2022
davidpdrsn added a commit that referenced this pull request Feb 8, 2022
Fixed

- Add `Vary` headers for CORS preflight responses ([#216])

[#216]: #216
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants