2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: BrowserContext.clearPermissionOverrides
|
|
|
|
---
|
|
|
|
|
|
|
|
# BrowserContext.clearPermissionOverrides() method
|
|
|
|
|
|
|
|
Clears all permission overrides for the browser context.
|
|
|
|
|
2022-10-24 14:31:12 +00:00
|
|
|
#### Signature:
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class BrowserContext {
|
|
|
|
clearPermissionOverrides(): Promise<void>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<void>
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```ts
|
|
|
|
const context = browser.defaultBrowserContext();
|
|
|
|
context.overridePermissions('https://example.com', ['clipboard-read']);
|
|
|
|
// do stuff ..
|
|
|
|
context.clearPermissionOverrides();
|
|
|
|
```
|