Expand cookie to all domains *.diskfloppy.me
This commit is contained in:
parent
bf5df323d2
commit
08586938f6
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ function setCookie(cname, cvalue, exdays) {
|
||||||
const d = new Date();
|
const d = new Date();
|
||||||
d.setTime(d.getTime() + (exdays*24*60*60*1000));
|
d.setTime(d.getTime() + (exdays*24*60*60*1000));
|
||||||
let expires = "expires="+ d.toUTCString();
|
let expires = "expires="+ d.toUTCString();
|
||||||
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/;SameSite=Strict";
|
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/;SameSite=Strict;Domain=.diskfloppy.me";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue