X-Git-Url: http://git.squeep.com/?p=squeep-authentication-module;a=blobdiff_plain;f=lib%2Fauthenticator.js;h=0c0c349b7288af20f0fc7df421c91aeddd61a3dc;hp=c388ee883c60bb0fa79380696b87b9894528d209;hb=5b90f0a97b1f49b19d395ffe2cf14dda12d87fc9;hpb=92658b114da01ab5537c53dee7ff5ad6385fe179 diff --git a/lib/authenticator.js b/lib/authenticator.js index c388ee8..0c0c349 100644 --- a/lib/authenticator.js +++ b/lib/authenticator.js @@ -266,8 +266,9 @@ class Authenticator { const cookieParts = [ sessionCookie, 'HttpOnly', - `Path=${this.options.dingus.proxyPrefix}/`, `Max-Age=${this.cookieLifespan}`, + 'SameSite=Lax', + `Path=${this.options.dingus.proxyPrefix}/`, ]; if (this.options.authenticator.secureAuthOnly) { cookieParts.push('Secure'); @@ -282,6 +283,7 @@ class Authenticator { `${Enum.SessionCookie}=""`, 'HttpOnly', 'Max-Age=0', + 'SameSite=Lax', `Path=${this.options.dingus.proxyPrefix}/`, ]; if (this.options.authenticator.secureAuthOnly) { @@ -385,4 +387,4 @@ class Authenticator { } -module.exports = Authenticator; \ No newline at end of file +module.exports = Authenticator;