Skip to content

Let browser pin down cookie domain#958

Merged
onli merged 4 commits intomasterfrom
fix/cookieDomain
Apr 8, 2026
Merged

Let browser pin down cookie domain#958
onli merged 4 commits intomasterfrom
fix/cookieDomain

Conversation

@onli
Copy link
Copy Markdown
Member

@onli onli commented Apr 6, 2026

Instead of setting the domain of the cookie to $_SERVER['HTTP_HOST'], which can be manipulated in some server configurations, do not set the cookie domain manually at all. That way the browser will bind the cookie to the current domain, which is at least equally secure.

This is a security fix.

@onli onli requested a review from mattsches April 6, 2026 08:07
@onli onli merged commit 9b6e405 into master Apr 8, 2026
5 checks passed
@onli onli deleted the fix/cookieDomain branch April 8, 2026 08:28
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.

2 participants