commit | 278a29f66ad28c34bf66ee43de26cd9aa6f2c5b6 | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Thu Jan 14 11:29:30 2021 +0100 |
committer | Akron <nils@diewald-online.de> | Mon Jan 18 17:21:07 2021 +0100 |
tree | e201f7d1e608b1223e1120b43e6c74bd2ddd01f0 | |
parent | 0227d30b8f0afee1a2ac4d01537f9e52fe5175a6 [diff] |
Add SameSite=Lax rule to js cookie Change-Id: I400a30b31de10cdfd5e4702772c5df2c60158137
diff --git a/dev/js/src/session.js b/dev/js/src/session.js index 92bbadf..4a5c55a 100644 --- a/dev/js/src/session.js +++ b/dev/js/src/session.js
@@ -63,7 +63,7 @@ var date = new Date(); date.setYear(date.getFullYear() + 1); */ - return this._name + '=' + encodeURIComponent(JSON.stringify(this._hash)) + ';'; + return this._name + '=' + encodeURIComponent(JSON.stringify(this._hash)) + ';SameSite=Lax'; },