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.
// Only send cookie via HTTPs to mitigate man-in-the-middle attacks
15
-
secure: true,
16
-
// Only send cookie via HTTP requests, do not allow access of cookie from JS to mitigate XSS attacks
17
-
httpOnly: true,
18
-
// 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
20
+
expires: expirationDate,
21
+
// Only send cookie via HTTPs to mitigate man-in-the-middle attacks
22
+
secure: true,
23
+
// Only send cookie via HTTP requests, do not allow access of cookie from JS to mitigate XSS attacks
24
+
httpOnly: true,
25
+
// 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