Kong / Kong/insomnia

Cookies returned with a leading dot are not stored with the leading dot

Open
#2,443 2 comments 0 reactions 0 assignees View on GitHub
needs-triage
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

**Describe the bug**
Cookies returned with a leading dot are not stored with the leading dot

**To Reproduce**
Steps to reproduce the behavior:
1. Make a request that returns a cookie with a domain set with a leading dot.
```
set-cookie: global_access_token=REDACTED; domain=.online.church; path=/; expires=Sun, 02 Aug 2020 14:36:27 GMT; secure
```
2. Observe that the cookie was stored in the Cookie Manager without the leading dot.

**Expected behavior**
Cookie to be stored with leading dot.

**Screenshots**
If applicable, add screenshots to help explain your problem.
Screen Shot 2020-07-26 at 11 10 39 AM

Screen Shot 2020-07-26 at 11 08 31 AM

**Desktop (please complete the following information):**
- OS: macOS 10.15.6
- Installation Method: dmg
- App Version 2020.3.3

Contributor guide

Open the contributing guide

Research direction

Start by locating the Cookie Manager code that processes the Set-Cookie domain from the reproduction header. Reproduce the request with domain=.online.church, then verify that the stored cookie retains the leading dot and add or update coverage if the relevant test area is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.