Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/zh-cn/reference/api-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ Astro.response.headers.set('Set-Cookie', 'a=b; Path=/;');
**类型:** `(key: string, options?: CookieDeleteOptions) => void`
</p>

将 Cookie 标记为已删除。 Cookie 标记为已删除。一旦 cookie 被删除,`Astro.cookies.has()` 将返回 `false`,`Astro.cookies.get()` 将返回一个值为 `undefined` 的 [`AstroCookie`](#astrocookie)。选项允许设置要删除的 Cookie `domain``path`。
将 Cookie 标记为已删除。一旦 Cookie 被删除,`Astro.cookies.has()` 将返回 `false`,`Astro.cookies.get()` 将返回一个值为 `undefined` 的 [`AstroCookie`](#astrocookie)。删除 Cookie 时可用的选项包括:`domain``path`、`httpOnly`、`sameSite` 和 `secure`。

##### `headers`

Expand Down