Skip to content
Merged
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
12 changes: 12 additions & 0 deletions src/content/docs/zh-cn/reference/api-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,18 @@ cookie 的原始字符串值。

指定 cookie 应用的域的子路径。

##### `partitioned`

<p>

**类型:** `boolean`<br />
<Since v="5.17.0" />
</p>

如果设置为 true,则 cookie 是一个 [分区 cookie](https://developer.mozilla.org/en-US/docs/Web/Privacy/Guides/Privacy_sandbox/Partitioned_cookies)。分区 cookie 只能在设置它们的顶级站点的上下文中读取,这可以阻止跨站点跟踪,同时仍然启用第三方 cookie 的合法用途。

分区 cookie 必须设置 `secure: true`。

##### `sameSite`

<p>
Expand Down