humanswitch/consentcookie

Consentcookie option to persit on top domain

Opened this issue · 1 comments

Description

Currently the ConsentCookie cookie is always persisted the the Domain value set with the current domain visited by the user. To support multisite consents we need to have the option to save the cookie on a higher domain level.

Expected Behavior

image

Actual Behavior

image

Because you can have 'unlimited' subdomain levels, we will only support the current domain and the top domain.

e.g.
for domain: www.test.example.org the cookie can be optionally persisted on domain level www.test.example.org or example.org

The default persistence level is: top domain unless configured else