From 326b5d6b5f3454571d0cb835db7e9d841e3d16ee Mon Sep 17 00:00:00 2001 From: Midgard Date: Sat, 24 Jul 2021 17:48:08 +0200 Subject: [PATCH] Set secure and samesite --- app/static/js/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/static/js/theme.js b/app/static/js/theme.js index 8f693d9..dc240f8 100644 --- a/app/static/js/theme.js +++ b/app/static/js/theme.js @@ -6,7 +6,7 @@ const YEAR = 60 * 60 * 24 * 365; const storeCookieAndReload = (name, value) => { - document.cookie = name + " = " + value + "; Path=/; Max-Age=" + (50 * YEAR); + document.cookie = name + " = " + value + "; Path=/; Secure; SameSite=strict; Max-Age=" + (50 * YEAR); location.reload(); }