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

Update cookies documentation #46

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

groundcat
Copy link

@groundcat groundcat commented Dec 14, 2024

Attempting to address publicsuffix/list#2241


For experimental purpose, I have just set up a cookie tester at https://secaas.hk (secaas.hk is currently listed in the PSL) to test cookie behavior in Firefox and Chromium,

Observations:

  1. We can indeed set cookies on a public suffix (suffix.tld)
  2. As expected, subdomain1.suffix.tld and subdomain2.suffix.tld cannot set cookies on each other.
  3. As expected, subdomain1.suffix.tld can set cookies on sub.subdomain1.suffix.tld.
  4. As expected, subdomain1.suffix.tld and suffix.tld cannot set cookies on each other.

The documentation's current wording suggests that the PSL prevents cookie-setting entirely on public suffixes, when in reality it only prevents cookie sharing/inheritance between separate registrable domains under that public suffix. This is an important distinction that the documentation fails to make clear. A more accurate description would explain that the PSL helps prevent cookies set on one domain from being accessible to other domains under the same public suffix.

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