Skip to content

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

Description

@jereze

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions