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

Add explanation and more special-use domains #203

Merged
merged 2 commits into from Oct 11, 2020

Conversation

ShivanKaul
Copy link
Contributor

Fix #174

I think @ruoho said he'd write a test case for #173 - once that is in I'll rebase off of that and add some more tests.

The hack in https://github.com/salesforce/tough-cookie/blob/master/lib/permuteDomain.js#L41 was introduced in #173 and is expanded in this PR because we rely on PSL's psl.get() call. This doesn't work for special-use domains because most of them are not in the Public Suffix List (except for .onion). Interestingly, libpsl (the C equivalent of the PSL js library we use) has a isCookieDomainAcceptable() function that would be useful - I raised an issue asking if there's interest in it for the PSL js library here: lupomontero/psl#232

Copy link
Contributor

@medelibero-sfdc medelibero-sfdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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.

Fully implement RFC 6761
2 participants