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

CORS middleware should set the Vary header #199

Merged
merged 1 commit into from
Jan 3, 2022

Conversation

shepmaster
Copy link
Contributor

The headers are based on corsware which states:

These are all headers which can influence the outcome of any given
CORS request.

Fixes #198

The headers are based on [corsware][] which states:

> These are all headers which can influence the outcome of any given
> CORS request.

Fixes tower-rs#198

[corsware]: https://github.com/atorstling/corsware/blob/3467805a74145b788f8234f9f994caf045509b31/src/lib.rs#L223-L229
Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This looks good to me.

It also matches what actix-web does (as of two days ago 😅)

I'll fix CI in a separate PR.

@davidpdrsn davidpdrsn merged commit 981a477 into tower-rs:master Jan 3, 2022
@jplatte
Copy link
Collaborator

jplatte commented Jan 3, 2022

Changelog entry is missing, followup PR for that would probably be good?

@davidpdrsn
Copy link
Member

Yeah I noticed that. I'll just fill it in when doing a release.

@davidpdrsn
Copy link
Member

Actually I just did it in c99dd0a

@shepmaster shepmaster deleted the cors-vary-headers branch January 3, 2022 16:22
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.

CORS middleware should set the Vary header
3 participants