You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2023. It is now read-only.
// Do not send cookies on many cross-site requests to mitigates CSRF and cross-site attacks, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite#lax
// Set cookie expiration date to now + expiryInSeconds
19
+
expires: expirationDate,
20
+
// Wether to send cookie via HTTPs to mitigate man-in-the-middle attacks
21
+
secure: sessionOptions.cookieSecure,
22
+
// Wether to send cookie via HTTP requests and not allowing access of cookie from JS to mitigate XSS attacks
23
+
httpOnly: sessionOptions.cookieHttpOnly,
24
+
// Do not send cookies on many cross-site requests to mitigates CSRF and cross-site attacks, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite#lax
* Force the session identifier cookie to be set on every response. The expiration is reset to the original expiryInSeconds, resetting the expiration countdown.
0 commit comments