Skip to content

FollowRedirects, set-cookie, final response cookie contents & cookies given on each re-direct request (GSoC 2026) #2755

Description

@azad2003-ai

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.

Thank you!
Azad kumar

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions