summaryrefslogtreecommitdiff
path: root/templates/layouts/app.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-12-03 13:02:46 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-12-03 13:02:46 +0100
commitab84d645db2aaba81e06f77c4f31a29147893022 (patch)
tree7959c050e5357a472de04b1be40c659709be5f03 /templates/layouts/app.html.ep
parent0e5fb307845269321c6dec98f3a98513259700e1 (diff)
set samesite attribute for cookies
Diffstat (limited to 'templates/layouts/app.html.ep')
-rw-r--r--templates/layouts/app.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep
index cb8a163..a9716c7 100644
--- a/templates/layouts/app.html.ep
+++ b/templates/layouts/app.html.ep
@@ -31,7 +31,7 @@
const old = document.getElementById(id);
if (old && (old.href != path)) {
old.href = path;
- document.cookie = 'theme=' + name;
+ document.cookie = 'theme=' + name + ';SameSite=None;Secure';
}
}
const otherTheme = {