Unverified Commit ab84d645 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

set samesite attribute for cookies

parent 0e5fb307
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
 */

function setLang(lang) {
	document.cookie = 'lang=' + lang;
	document.cookie = 'lang=' + lang + ';SameSite=None;Secure';
	location.reload();
}

+1 −1
Original line number Diff line number Diff line
@@ -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 = {