Skip to content

Fix top level domain grouping initial cookie set attempt #1162

Description

Describe the bug
The algorithm behind the discoverRootDomain functionality checks if the domain is valid to set a cookie at the highest level domain. This algorithm currently starts from a eTLD which will not be valid in any case, e.g. .com, .io etc.

This behaviour will create a console warning every time in some browsers e.g. Firefox
image

The fix would just be to start trying from the TLD and not the eTLD.

Note
Even with the fix, if we have an eTLD with more than one part e.g. co.uk, then the warning will still be there. This happens with other trackers as well e.g. analytics.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:defectBugs or weaknesses. The issue has to contain steps to reproduce.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions