You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The getPublicSuffix function needs to be called with ignoreError to prevent throwing an error.
In my honest opinion the throw should handle ignoreError and allowSpecialUseDomain cases.
ignoreError: true, allowSpecialUseDomain: false -> no Error
ignoreError: true, allowSpecialUseDomain: true -> no Error
ignoreError: false, allowSpecialUseDomain: false -> throw Error
ignoreError: false, allowSpecialUseDomain: false -> no Error
I have seen that the implementation of pubsuffix-psl isn't recognizing localhost correctly.
I have checked the complete stacktrace for our local environment using localhost as URL.
The getPublicSuffix function needs to be called with ignoreError to prevent throwing an error.
In my honest opinion the throw should handle ignoreError and allowSpecialUseDomain cases.
ignoreError: true, allowSpecialUseDomain: false -> no Error
ignoreError: true, allowSpecialUseDomain: true -> no Error
ignoreError: false, allowSpecialUseDomain: false -> throw Error
ignoreError: false, allowSpecialUseDomain: false -> no Error
https://github.com/salesforce/tough-cookie/blob/master/lib/pubsuffix-psl.js#L43-L68
Workaround: use localhost.local for your environment to skip this issue.
The text was updated successfully, but these errors were encountered: