Kong / Kong/insomnia

Set-Cookie header not working properly when redirecting

Open
#6,478 6 comments 0 reactions 0 assignees View on GitHub
B-bug S-unverified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

### Expected Behavior

when redirection happens, the subsequent Set-Cookie response header set cookies to the subsequent url domains

### Actual Behavior

when redirection happens, the subsequent Set-Cookie response header set cookies to the original url domains

### Reproduction Steps

trigger a request with 302 status code and Set-Cookie response header

### Is there an existing issue for this?

- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.

### Additional Information

_No response_

### Insomnia Version

2023.5.8

### What operating system are you using?

Windows

### Operating System Version

版本 Windows 11 专业版 版本 22H2 安装日期 ‎2022/‎5/‎12 操作系统版本 22624.2265 体验 Windows Feature Experience Pack 1000.22674.1000.0

### Installation method

download from insomnia.rest

### Last Known Working Insomnia version

2021.6.0

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported 302 response with Set-Cookie on Insomnia 2023.5.8, then trace the redirect and cookie-jar handling entry points; the payload names no files or tests. Done means the behavior is covered by a regression test and cookies from the redirect response follow the intended URL domain rules.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.