From c6235c3ea193955c4b3cbecad43edc44c41e7b46 Mon Sep 17 00:00:00 2001 From: Farzad Date: Mon, 8 Apr 2024 23:54:09 +0300 Subject: [PATCH] Update the list of acceptable cookie options for Astro.cookies.delete --- src/content/docs/en/reference/api-reference.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/reference/api-reference.mdx b/src/content/docs/en/reference/api-reference.mdx index 97acde8510a40..001367cdf1595 100644 --- a/src/content/docs/en/reference/api-reference.mdx +++ b/src/content/docs/en/reference/api-reference.mdx @@ -238,7 +238,7 @@ Sets the cookie `key` to the given value. This will attempt to convert the cooki **Type:** `(key: string, options?: CookieDeleteOptions) => void`

-Marks the cookie as deleted. Once a cookie is deleted `Astro.cookies.has()` will return `false` and `Astro.cookies.get()` will return an [`AstroCookie`](#astrocookie) with a `value` of `undefined`. Options allow setting the `domain` and `path` of the cookie to delete. +Marks the cookie as deleted. Once a cookie is deleted `Astro.cookies.has()` will return `false` and `Astro.cookies.get()` will return an [`AstroCookie`](#astrocookie) with a `value` of `undefined`. Options available when deleting a cookie are: `domain`, `path`, `httpOnly`, `sameSite`, and `secure`. ##### `headers`