diff options
author | Frankie B <git@diskfloppy.me> | 2024-01-26 12:28:50 +0000 |
---|---|---|
committer | Frankie B <git@diskfloppy.me> | 2024-01-26 12:29:00 +0000 |
commit | 08586938f6a4e06aa0808a2f9a3f87a83f981585 (patch) | |
tree | 44274cbbcaec44e5aedc2688e50bd953be8e2352 /public | |
parent | bf5df323d29a07e36d4cb71b38405b65da36ca04 (diff) |
Expand cookie to all domains *.diskfloppy.me
Diffstat (limited to 'public')
-rw-r--r-- | public/js/schemeSwap.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/schemeSwap.js b/public/js/schemeSwap.js index d1d01c0..3baa09b 100644 --- a/public/js/schemeSwap.js +++ b/public/js/schemeSwap.js @@ -29,7 +29,7 @@ function setCookie(cname, cvalue, exdays) { const d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); let expires = "expires="+ d.toUTCString(); - document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/;SameSite=Strict"; + document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/;SameSite=Strict;Domain=.diskfloppy.me"; } /** |