Skip to content

Commit 8c0c2ac

Browse files
authored
Set SameSite=Strict cookies
This is needed because newer browsers such as Firefox 76 are starting to require this. See also https://bugs.xdebug.org/1782
1 parent 7256250 commit 8c0c2ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var xdebug = (function() {
44
{
55
var exp = new Date();
66
exp.setTime(exp.getTime() + (days * 24 * 60 * 60 * 1000));
7-
document.cookie = name + "=" + value + "; expires=" + exp.toGMTString() + "; path=/";
7+
document.cookie = name + "=" + value + "; expires=" + exp.toGMTString() + "; path=/; SameSite=Strict";
88
}
99

1010
// Get the content in a cookie

0 commit comments

Comments
 (0)