Skip to main content
Version: 24.38.0

CookiePartitionKey 接口

🌐 CookiePartitionKey interface

表示 Chrome 中的 cookie 分区键。

🌐 Represents a cookie partition key in Chrome.

语法

🌐 Signature

export interface CookiePartitionKey

属性

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

默认

🌐 Default

hasCrossSiteAncestor

optional

boolean

指示 cookie 是否有任何跨站点到 topLevelSite 的祖级。

🌐 Indicates if the cookie has any ancestors that are cross-site to the topLevelSite.

仅在 Chrome 中受支持。

🌐 Supported only in Chrome.

sourceOrigin

string

浏览器在向设置 cookie 的端点发送请求时访问的顶层 URL 的站点。

🌐 The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie.

在 Chrome 中,映射到 CDP 的 topLevelSite 分区键。

🌐 In Chrome, maps to the CDP's topLevelSite partition key.