Skip to content

FollowRedirects, set-cookie, final response cookie contents & cookies given on each re-direct request #2671

@Zerkath

Description

@Zerkath

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.

I have PR #2672 submission that has a test case that covers these issues.

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.

Related to:
#1434

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