diff --git a/.changeset/shaggy-cats-film.md b/.changeset/shaggy-cats-film.md index 23a7020244e7..35c9f9710008 100644 --- a/.changeset/shaggy-cats-film.md +++ b/.changeset/shaggy-cats-film.md @@ -1,5 +1,11 @@ --- -"astro": patch +"astro": minor --- -Accept standard cookie attributes when deleting a cookie +Extends the acceptable cookie options when deleting a cookie, to the following attribute: + +- `domain` +- `path` +- `httpOnly` *(Added)* +- `sameSite` *(Added)* +- `secure` *(Added)* diff --git a/packages/astro/src/core/cookies/cookies.ts b/packages/astro/src/core/cookies/cookies.ts index 2657683f2101..069afc796e9c 100644 --- a/packages/astro/src/core/cookies/cookies.ts +++ b/packages/astro/src/core/cookies/cookies.ts @@ -11,7 +11,7 @@ export interface AstroCookieGetOptions { decode?: (value: string) => string; } -type AstroCookieDeleteOptions = Omit; +type AstroCookieDeleteOptions = Omit; interface AstroCookieInterface { value: string;