X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fsession-manager.js;h=bd08eef26e7cc44d11473b53bfcd3a8a1e2f6e4f;hb=812f4a60c4e7901e81445aa7f75cbb7f772534b7;hp=a97a0e0fd3f0edf2ed897e89c9f565e41843525c;hpb=a44a8c411be1831e7b2418212ee0b295206ca27a;p=squeep-authentication-module diff --git a/lib/session-manager.js b/lib/session-manager.js index a97a0e0..bd08eef 100644 --- a/lib/session-manager.js +++ b/lib/session-manager.js @@ -51,6 +51,7 @@ class SessionManager { const cookieParts = [ `${cookieName}=${secureSession}`, 'HttpOnly', + 'SameSite=Lax', ]; if (this.options.authenticator.secureAuthOnly) { cookieParts.push('Secure'); @@ -345,4 +346,4 @@ class SessionManager { } -module.exports = SessionManager; \ No newline at end of file +module.exports = SessionManager;