Skip to content

Add explanation and more special-use domains#203

Merged
ShivanKaul merged 2 commits intomasterfrom
feat/special-use-domains
Oct 11, 2020
Merged

Add explanation and more special-use domains#203
ShivanKaul merged 2 commits intomasterfrom
feat/special-use-domains

Conversation

@ShivanKaul
Copy link
Copy Markdown
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
Copy Markdown
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