diff --git a/templates/semantic-ui/zenodo_rdm/trackingcode/trackingcode-prod.html b/templates/semantic-ui/zenodo_rdm/trackingcode/trackingcode-prod.html index 1fc56735..4ac0c7d8 100644 --- a/templates/semantic-ui/zenodo_rdm/trackingcode/trackingcode-prod.html +++ b/templates/semantic-ui/zenodo_rdm/trackingcode/trackingcode-prod.html @@ -73,7 +73,7 @@ d.setTime(d.getTime() + (365 * 24 * 60 * 60 * 1000)); // one year var expires = "expires=" + d.toUTCString(); var cookie = cname + "=" + cvalue + ";" + expires + ";" - cookie += "path=/;SameSite=None; Secure"; // so that it works across subdomains + cookie += "Domain=zenodo.org;Path=/;SameSite=None; Secure"; document.cookie = cookie; } diff --git a/templates/semantic-ui/zenodo_rdm/trackingcode/trackingcode-qa.html b/templates/semantic-ui/zenodo_rdm/trackingcode/trackingcode-qa.html index 1e48d6f4..aaf63f66 100644 --- a/templates/semantic-ui/zenodo_rdm/trackingcode/trackingcode-qa.html +++ b/templates/semantic-ui/zenodo_rdm/trackingcode/trackingcode-qa.html @@ -73,7 +73,7 @@ d.setTime(d.getTime() + (365 * 24 * 60 * 60 * 1000)); // one year var expires = "expires=" + d.toUTCString(); var cookie = cname + "=" + cvalue + ";" + expires + ";" - cookie += "path=/;SameSite=None; Secure"; // so that it works across subdomains + cookie += "Domain=zenodo.org;Path=/;SameSite=None; Secure"; document.cookie = cookie; }