If set to true
, forbids JavaScript from accessing the cookie.
Indicates the number of seconds until the cookie expires. A zero or negative number will expire the cookie immediately.
Specifies the path that must exist in the requested URL for the browser to send the Cookie header.
Controls whether or not a cookie is sent with cross-origin requests, providing some protection against cross-site request forgery attacks.
If set to true
, indicates that the cookie is sent to the server only when a request is made with the https: scheme (except on localhost), and therefore, is more resistant to man-in-the-middle attacks.
Generated using TypeDoc
Defines the cookie options. Primarly used to specify the otpions when setting the sessionToken cookie which is used to pass session token from the client (e.g., browser) to the server (e.g., next.js, express) in an app where server side rendering is used.
CookieOptions