Optionalexpires?: Date | ITimeSpan | nullThe Expires attribute — when the cookie should be removed.
Accepts a Date or an ITimeSpan (relative from now).
OptionalhttpOnly?: booleanThe HttpOnly attribute — when true, the cookie is inaccessible to JavaScript.
OptionalmaxAge?: number | ITimeSpan | nullThe Max-Age attribute — lifetime in seconds.
Accepts a raw number or an ITimeSpan.
Optionalpartitioned?: booleanThe Partitioned attribute — when true, the cookie is stored using
partitioned storage (CHIPS), scoped to the top-level site.
Optionalprefix?: "secure" | "host" | nullCookie name prefix that browsers use to enforce additional security:
"secure" — the __Secure- prefix, requires Secure and rejects Domain."host" — the __Host- prefix, requires Secure, Path=/, and rejects Domain.Optionalpriority?: "Low" | "Medium" | "High" | nullThe Priority attribute — hints to the browser which cookies to evict first.
OptionalsameSite?: "Strict" | "Lax" | "None"The SameSite attribute — controls cross-site request behaviour.
"Strict" — only sent for same-site requests."Lax" — sent for same-site and top-level navigation GET requests."None" — sent for all requests (requires Secure).
Settings for configuring a
Set-Cookieheader.IMPORT_PATH:
"@daiso-tech/core/http-router/contracts"