Skip to content

Treat Domain=. as a host-only cookie - #2350

Merged
hyperxpro merged 1 commit into
mainfrom
fix/cookie-empty-domain
Sep 23, 2026
Merged

hyperxpro merged 1 commit into
mainfrom
fix/cookie-empty-domain

Conversation

@hyperxpro

Copy link
Copy Markdown
Member

Motivation:

Domain=. leaves an empty domain once the dot is stripped. RFC 6265 section 5.3 step 6 makes such a cookie host-only; we dropped it.

Modification:

Fall back to the request host, host-only, when the stripped domain is empty.

Result:

Domain=. cookies are stored as host-only.

@hyperxpro
hyperxpro merged commit 5f970a4 into main Sep 23, 2026
17 checks passed
@hyperxpro
hyperxpro deleted the fix/cookie-empty-domain branch September 23, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant