You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FollowRedirects, set-cookie, final response cookie contents & cookies given on each re-direct request (GSoC 2026) #2755
Being redirected will not apply cookies to the subsequent requests, even if the sensitive headers is fully unset.
After the request chain completes the last response receive only has set cookies from that response, not from all the requests leading up to it.
Resolution is unclear as there are a few options.
Keeping things as is, maybe improving documentation in regards to edge cases & potential solutions.
Some new configuration option to the FollowRedirectsBackend
which applies cookies on re-direct chain requests, maybe selecting from some collection cookies that are for the same domain as the location?
updating response cookies to also include cookies set during the request chain or a new method that merges request history & cookies.
One more option: each response has a history of responses attached to it (from all redirects etc.) So maybe that would be a good soruce of infromation, to gather all the generated cookies? Might be as simple as providing an example on how to do it + amending documentation.
Activity
adamw commentedon Jan 5, 2026
One more option: each response has a history of responses attached to it (from all redirects etc.) So maybe that would be a good soruce of infromation, to gather all the generated cookies? Might be as simple as providing an example on how to do it + amending documentation.