mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Resolve #537
This commit is contained in:
parent
bb77d0ae02
commit
c83cf64b80
3 changed files with 9 additions and 5 deletions
|
|
@ -27,8 +27,8 @@ try {
|
|||
setItem: (key, value) => {
|
||||
data[key] = ''+value; // forces the value to a string
|
||||
document.cookie = sName+'='+encodeURIComponent(JSON.stringify(data))
|
||||
+"; expires="+((new Date(Date.now()+(365*24*60*60*1000))).toGMTString())
|
||||
+"; path=/; samesite=strict";
|
||||
+";expires="+((new Date(Date.now()+(365*24*60*60*1000))).toGMTString())
|
||||
+";path=/;samesite=strict";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,8 +37,6 @@ try {
|
|||
smctoken = encodeURIComponent(btoa(String.fromCharCode(...data)));
|
||||
}
|
||||
localStorage.setItem('smctoken', smctoken);
|
||||
// doc.cookie = `smctoken=${smctoken};path=${doc.location.pathname};samesite=strict;secure";
|
||||
// doc.cookie = 'smctoken='+smctoken+";path=/;samesite=lax";
|
||||
doc.cookie = 'smctoken='+smctoken+";path=/;samesite=strict";
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue