跳至主要內容
版本:23.11.1

CookiePartitionKey 介面

表示 Chrome 中的 Cookie 分割金鑰。

簽名

export interface CookiePartitionKey

屬性

屬性

修飾符

類型

描述

預設值

hasCrossSiteAncestor

可選

布林值

指示 Cookie 是否有任何與 topLevelSite 跨站的祖先。

僅在 Chrome 中支援。

sourceOrigin

字串

在開始向設定 Cookie 的端點發出請求時,瀏覽器正在造訪的頂層 URL 的網站。

在 Chrome 中,會對應到 CDP 的 topLevelSite 分割金鑰。