mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Same site cookie fix - Ready for testing / merge (#3990)
* initial fix for httpprefs * token * express_sid fix
This commit is contained in:
parent
3ea8d571e7
commit
b15154cc23
3 changed files with 18 additions and 3 deletions
|
@ -46,7 +46,8 @@ var padcookie = (function()
|
|||
var expiresDate = new Date();
|
||||
expiresDate.setFullYear(3000);
|
||||
var secure = isHttpsScheme() ? ";secure" : "";
|
||||
document.cookie = (cookieName + "=" + safeText + ";expires=" + expiresDate.toGMTString() + secure);
|
||||
var sameSite = isHttpsScheme() ? ";sameSite=Strict": ";sameSite=Lax";
|
||||
document.cookie = (cookieName + "=" + safeText + ";expires=" + expiresDate.toGMTString() + secure + sameSite);
|
||||
}
|
||||
|
||||
function parseCookie(text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue