2020-06-04 14:56:45 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [BrowserContext](./puppeteer.browsercontext.md) > [clearPermissionOverrides](./puppeteer.browsercontext.clearpermissionoverrides.md)
|
|
|
|
|
|
|
|
## BrowserContext.clearPermissionOverrides() method
|
|
|
|
|
2020-06-23 05:21:01 +00:00
|
|
|
Clears all permission overrides for the browser context.
|
|
|
|
|
2020-06-04 14:56:45 +00:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
clearPermissionOverrides(): Promise<void>;
|
|
|
|
```
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
Promise<void>
|
|
|
|
|
2020-06-23 05:21:01 +00:00
|
|
|
## Example
|
|
|
|
|
|
|
|
|
|
|
|
```js
|
|
|
|
const context = browser.defaultBrowserContext();
|
|
|
|
context.overridePermissions('https://example.com', ['clipboard-read']);
|
|
|
|
// do stuff ..
|
|
|
|
context.clearPermissionOverrides();
|
|
|
|
|
|
|
|
```
|
|
|
|
|