Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mandarinets/mvc-framework/core/interfaces/http/cookie.ts>CookieConfig

Mandarine.TS is a typescript, decorator-driven framework that allows you to create server-side applications. Mandarine.TS provides a range of built-in solutions such as Dependency Injection, Components, ORM and more. Under its umbrella, Mandarine.TS has 4 modules: Core, Data, Security and MVC, these modules will offer you the requirements to build a Mandarine-powered application.
Latest
interface CookieConfig
import { type CookieConfig } from "https://deno.land/x/mandarinets@v2.3.2/mvc-framework/core/interfaces/http/cookie.ts";

Properties

optional
expires: Date

Expiration date of the cookie.

optional
maxAge: number

Max-Age of the Cookie. Must be integer superior to 0.

optional
domain: string

Specifies those hosts to which the cookie will be sent.

optional
path: string

Indicates a URL path that must exist in the request.

optional
secure: boolean

Indicates if the cookie is made using SSL & HTTPS.

optional
httpOnly: boolean

Indicates that cookie is not accessible via JavaScript. *

optional
sameSite: "Strict" | "Lax" | "None"

Allows servers to assert that a cookie ought not to be sent along with cross-site requests.

optional
unparsed: string[]

Additional key value pairs with the form "key=value"