Skip to content

cookie: cookies set for an exact PSL domain is host-only - #22730

Closed
bagder wants to merge 4 commits into
masterfrom
bagder/cookies-psl
Closed

bagder wants to merge 4 commits into
masterfrom
bagder/cookies-psl

Conversation

@bagder

@bagder bagder commented Aug 28, 2026

Copy link
Copy Markdown
Member

Added test 2318 to verify.

Reported-by: Stanislav Fort (Aisle Research)

Added test 2318 to verify.

Reported-by: Stanislav Fort (Aisle Research)
Because of the localhost treatement
@bagder
bagder marked this pull request as ready for review August 28, 2026 20:57
@bagder
bagder requested a balanced review from Copilot August 28, 2026 21:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates PSL cookie handling so cookies set for an exact public-suffix host become host-only.

Changes:

  • Converts exact PSL-domain cookies from tail-matching to host-only.
  • Adds regression coverage and updates affected expectations.
  • Registers test 2318.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
lib/cookie.c Implements host-only conversion.
tests/data/test2318 Adds regression coverage.
tests/data/test798 Updates localhost expectation.
tests/data/test1136 Updates AWS PSL expectation.
tests/data/Makefile.am Registers the new test.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tests/data/test2318
Comment thread lib/cookie.c
Comment thread lib/cookie.c
@bagder bagder closed this in 95c1e89 Aug 28, 2026
@bagder
bagder deleted the bagder/cookies-psl branch August 28, 2026 22:04
jcamiel added a commit to Orange-OpenSource/hurl that referenced this pull request Sep 3, 2026
…22730>

curl 8.22 changes cookie managment for PSL. A cookie that set Domain=localhost for request on localhost becomes host only. So in curl 8.22, such a request changes a cookie from subdomain to host only.
jcamiel added a commit to Orange-OpenSource/hurl that referenced this pull request Sep 3, 2026
…22730>

curl 8.22 changes cookie managment for PSL. A cookie that set Domain=localhost for request on localhost becomes host only. So in curl 8.22, such a request changes a cookie from subdomain to host only.
jcamiel added a commit to Orange-OpenSource/hurl that referenced this pull request Sep 3, 2026
…22730>

curl 8.22 changes cookie managment for PSL. A cookie that set Domain=localhost for request on localhost becomes host only. So in curl 8.22, such a request changes a cookie from subdomain to host only.
jcamiel added a commit to Orange-OpenSource/hurl that referenced this pull request Sep 3, 2026
…22730>

curl 8.22 changes cookie managment for PSL. A cookie that set Domain=localhost for request on localhost becomes host only. So in curl 8.22, such a request changes a cookie from subdomain to host only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants