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 additional x-middleware-set-cookie filtering #75561

Merged

Conversation

ztanner
Copy link
Member

@ztanner ztanner commented Feb 1, 2025

Previously when we removed this from the response we only did so for requests that flowed through middleware and static handlers. We should ensure it's filtered in sendResponse as well. The header is only needed internally.

Copy link
Member Author

ztanner commented Feb 1, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ztanner ztanner marked this pull request as ready for review February 1, 2025 18:21
@ztanner ztanner requested a review from ijjk February 1, 2025 18:21
@ztanner ztanner changed the title filter x-middleware-set-cookie in route handlers add additional x-middleware-set-cookie filtering Feb 1, 2025
@ijjk
Copy link
Member

ijjk commented Feb 3, 2025

Tests Passed

@ztanner ztanner force-pushed the 02-01-filter_x-middleware-set-cookie_in_route_handlers branch from 77081d0 to c654bff Compare February 3, 2025 15:21
@ztanner ztanner merged commit 98d4bba into canary Feb 3, 2025
130 of 131 checks passed
@ztanner ztanner deleted the 02-01-filter_x-middleware-set-cookie_in_route_handlers branch February 3, 2025 20:58
@nphmuller
Copy link
Contributor

Really appreciate this is implemented. Thank you!!

@radum
Copy link

radum commented Feb 10, 2025

This was a pain to debug that broke our app :) would be great if this can land before 2.0 canary lands.

Thank you.

ztanner added a commit that referenced this pull request Feb 10, 2025
Previously when we removed this from the response we only did so for
requests that flowed through middleware and static handlers. We should
ensure it's filtered in `sendResponse` as well. The header is only
needed internally.
ztanner added a commit that referenced this pull request Feb 10, 2025
Previously when we removed this from the response we only did so for
requests that flowed through middleware and static handlers. We should
ensure it's filtered in `sendResponse` as well. The header is only
needed internally.
ztanner added a commit that referenced this pull request Feb 10, 2025
ztanner added a commit that referenced this pull request Feb 10, 2025
…) (#75870)

Backports:
- #75561
- #73482

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants