softwaremill / softwaremill/sttp

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

Open
#2,755 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
1.5k
Forks
338
Avg merge
8h 59m
Merged PRs (30d)
13

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the FollowRedirectsBackend and trace how cookies are handled across redirected requests and in the final response. First resolve which behavior is wanted—preserving cookies for subsequent redirects, merging response cookies, or documenting the edge cases; done means the selected behavior or documentation is implemented and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.