mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 18:52:23 +01:00
fix: set SameSite=Lax on cookies
Prevents Firefox warning.
This commit is contained in:
@ -46,7 +46,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";
|
||||
}
|
||||
|
||||
function getCookie(name) {
|
||||
|
||||
Reference in New Issue
Block a user