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.
constmessage=`Cannot "${method}" session data as endpoint is not enabled. If you want to be able to "${method}" session data, you can configure this via the "session.api.isEnabled: boolean" and "session.api.methods: ('post' | 'get' | ...)[]" module configuration options.`
throwcreateError({statusCode: 400,message: 'Trying to pass invalid data to session, likely an object with `id` or `createdAt` fields or a non-object'})
throwcreateError({statusCode: 400,message: 'Trying to pass invalid data to session, likely an object with `id` or `createdAt` fields or a non-object'})
// Only send cookie via HTTPs to mitigate man-in-the-middle attacks
13
13
secure: true,
14
14
// Only send cookie via HTTP requests, do not allow access of cookie from JS to mitigate XSS attacks
15
15
httpOnly: true,
16
16
// 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
0 commit comments