From 3f2d4fdeb98786091041da2e6f1d4e9cf94b4d68 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Thu, 7 May 2020 16:50:33 +0100 Subject: [PATCH] Set SameSite=Strict cookies This seems to be needed for a new Firefox. See also http://bugs.xdebug.org/1782 --- source/content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/content.js b/source/content.js index 51b153b..8ecf853 100644 --- a/source/content.js +++ b/source/content.js @@ -4,7 +4,7 @@ var xdebug = (function() { { var exp = new Date(); exp.setTime(exp.getTime() + (days * 24 * 60 * 60 * 1000)); - document.cookie = name + "=" + value + "; expires=" + exp.toGMTString() + "; path=/"; + document.cookie = name + "=" + value + "; expires=" + exp.toGMTString() + "; path=/; SameSite=Strict"; } // Get the content in a cookie