Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the domain set for first-party cookies? #3

Open
jereze opened this issue Jun 15, 2015 · 0 comments
Open

Changing the domain set for first-party cookies? #3

jereze opened this issue Jun 15, 2015 · 0 comments

Comments

@jereze
Copy link

jereze commented Jun 15, 2015

According to the documentation:
By default, the cookies are set on the domain specified by document.location.host (ie, the "current website") on the / path.

Is there an option to attach first-party cookies on .domain.tld (starting with a dot) instead of, for example, www.domain.tld?

It could allow to get the same cookies for all sub-domains of the same level.
From the RFC 2109:

A Set-Cookie from request-host x.foo.com for Domain=.foo.com would be accepted.
A Set-Cookie from request-host y.x.foo.com for Domain=.foo.com would be rejected, because H is y.x and contains a dot.
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

No branches or pull requests

1 participant