Skip to content

IOptionalCookie

David Ortner edited this page Apr 10, 2025 · 3 revisions

IOptionalCookie represents a cookie with optional properties sent in as a parameter to CookieContainer.addCookies().

Signature

interface IOptionalCookie

Properties

Property Type Default Description
key string Key.
originURL URL Origin URL.
value? string | null Value.
domain? string Domain.
path? string Path.
expires? Date | null Expires.
httpOnly? boolean HTTP only.
secure? boolean Secure.
sameSite? CookieSameSiteEnum Same site.
Clone this wiki locally