From ab84d645db2aaba81e06f77c4f31a29147893022 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 3 Dec 2023 13:02:46 +0100 Subject: set samesite attribute for cookies --- templates/layouts/app.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/layouts') 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 = { -- cgit v1.2.3