diff --git a/server/static/table_toggle.js b/server/static/table_toggle.js index da4beee..37f1c16 100644 --- a/server/static/table_toggle.js +++ b/server/static/table_toggle.js @@ -69,7 +69,7 @@ function setCookie(name, value, days) { date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); expires = "; expires=" + date.toUTCString(); } - document.cookie = name + "=" + (value || "") + expires + "; path=/"; + document.cookie = name + "=" + (value || "") + expires + "; path=/; SameSite=Lax; Secure"; } function getCookie(name) { @@ -81,4 +81,4 @@ function getCookie(name) { if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); } return null; -} \ No newline at end of file +}