From 08586938f6a4e06aa0808a2f9a3f87a83f981585 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Fri, 26 Jan 2024 12:28:50 +0000 Subject: [PATCH] Expand cookie to all domains *.diskfloppy.me --- public/js/schemeSwap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } /**