Skip to main content
Version: 24.38.0

DeleteCookiesRequest 接口

🌐 DeleteCookiesRequest interface

语法

🌐 Signature

export interface DeleteCookiesRequest

属性

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

默认

🌐 Default

domain

optional

string

如果指定,则仅删除具有确切域的 cookie。

🌐 If specified, deletes only cookies with the exact domain.

name

string

要删除的 cookie 的名称。

🌐 Name of the cookies to remove.

partitionKey

optional

[CookiePartitionKey](./puppeteer.cookiepartitionkey.md) |弦

如果指定,则删除给定分区键中的 cookie。在 Chrome 中,partitionKey 与分区 cookie 可用的顶层站点匹配。在 Firefox 中,它与 PartitionKey 中的源来源匹配。

🌐 If specified, deletes cookies in the given partition key. In Chrome, partitionKey matches the top-level site the partitioned cookie is available in. In Firefox, it matches the source origin in the PartitionKey.

path

optional

string

如果指定,则仅删除具有确切路径的 cookie。

🌐 If specified, deletes only cookies with the exact path.

url

optional

string

如果指定,则删除所有名称为给定名称且其域和路径与提供的 URL 匹配的 Cookie。否则,仅删除与当前页面域相关的 Cookie。

🌐 If specified, deletes all the cookies with the given name where domain and path match provided URL. Otherwise, deletes only cookies related to the current page's domain.