DeleteCookiesRequest 接口
🌐 DeleteCookiesRequest interface
语法
🌐 Signature
export interface DeleteCookiesRequest
属性
🌐 Properties
属性 🌐 Property | 修饰符 🌐 Modifiers | 类型 🌐 Type | 描述 🌐 Description | 默认 🌐 Default |
|---|---|---|---|---|
| domain |
| string | 如果指定,则仅删除具有确切域的 cookie。 🌐 If specified, deletes only cookies with the exact domain. | |
| name | string | 要删除的 cookie 的名称。 🌐 Name of the cookies to remove. | ||
| partitionKey |
| [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 |
| string | 如果指定,则仅删除具有确切路径的 cookie。 🌐 If specified, deletes only cookies with the exact path. | |
| url |
| 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. |