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

Fix CORS middleware to retain cookies #599

Merged
merged 1 commit into from
Jun 17, 2020
Merged

Fix CORS middleware to retain cookies #599

merged 1 commit into from
Jun 17, 2020

Conversation

rkusa
Copy link
Contributor

@rkusa rkusa commented Jun 16, 2020

The CORS middleware currently does some response conversions that are not necessary anymore and that result in loosing cookies for responses to CORS requests. This PR fixes the CORS middleware to retain those cookies by removing the unnecessary conversions.

This PR is similar to #403, but is adjusted for recent changes to the tide's Response and includes a test (@callym I hope you don't mind the additional take on that issue).

@jbr jbr merged commit e258d23 into http-rs:master Jun 17, 2020
@rkusa rkusa deleted the cors_retain_cookies branch June 17, 2020 20:39
@rkusa rkusa restored the cors_retain_cookies branch June 18, 2020 16:07
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.

3 participants