From 30fbc9b80aa57387ec606230a6140f8d10ce73cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenzo=20Dellac=C3=A0?= Date: Fri, 10 Jul 2020 12:44:35 +0200 Subject: [PATCH] fixed firefox cookie security error --- scripts/policy-popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/policy-popup.js b/scripts/policy-popup.js index 1dd54f4..394aee9 100644 --- a/scripts/policy-popup.js +++ b/scripts/policy-popup.js @@ -6,9 +6,9 @@ function openPolicyPopup() { function agreePolicyPopup() { const _paq = window._paq || []; - _paq.push(['rememberConsentGiven']); // todo: check if this works + _paq.push(['rememberConsentGiven']); $("#policy-popup").fadeOut(1000); // Disable the div - document.cookie = "consentGiven=true"; // todo: check if already present? also, firefox was throwing a warning... + document.cookie = "consentGiven=true;SameSite=Lax"; // todo: check if already present? also, firefox was throwing a warning... } function getCookie(cname) {