@cldn/web-ts - v0.4.0
    Preparing search index...

    Interface CookieOptions

    interface CookieOptions {
        domain?: string;
        expires?: Date;
        httpOnly: boolean;
        maxAge?: number;
        partitioned: boolean;
        path?: string;
        sameSite?: SameSite;
        secure: boolean;
    }

    Implemented by

    Index

    Properties

    domain?: string

    Defines the host to which the cookie will be sent.

    expires?: Date

    Indicates the maximum lifetime of the cookie.

    httpOnly: boolean

    Forbids JavaScript from accessing the cookie.

    maxAge?: number

    Indicates the number of seconds until the cookie expires.

    partitioned: boolean

    Indicates that the cookie should be stored using partitioned storage.

    path?: string

    Indicates the path that must exist in the requested URL for the browser to send the Cookie header.

    sameSite?: SameSite

    Controls whether or not a cookie is sent with cross-site requests.

    secure: boolean

    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 https://developer.mozilla.org/en-US/docs/Glossary/MitM|man-in-the-middle attacks.

    Secure