Skip to content

Rebind store cookies when a filter replays or retargets - #2409

Merged
hyperxpro merged 1 commit into
mainfrom
fix/replay-store-cookies
Nov 25, 2026
Merged

hyperxpro merged 1 commit into
mainfrom
fix/replay-store-cookies

Conversation

@hyperxpro

Copy link
Copy Markdown
Member

Motivation:

The cookie store's cookies are added to a request before filters run, and nothing tells them from the caller's. A filter that replays or retargets that request to another origin sends them there, and the new origin never gets its own.

Modification:

Mark the cookies the store adds with StoreCookies. On a replay, a retarget, a redirect or an authentication retry, drop the marked ones and take the store's cookies for the request's URI. Cookies the caller or a filter set are kept.

Result:

Store cookies go only to the origin they were selected for, and a hop sends the store's current values.

@hyperxpro
hyperxpro merged commit 599a34b into main Nov 25, 2026
17 checks passed
@hyperxpro
hyperxpro deleted the fix/replay-store-cookies branch November 25, 2026 19:13
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.

1 participant