puppeteer/website/versioned_docs/version-9.1.1/puppeteer.browsercontext.clearpermissionoverrides.md
2021-08-10 11:09:48 +01:00

702 B

Home > puppeteer > BrowserContext > clearPermissionOverrides

BrowserContext.clearPermissionOverrides() method

Clears all permission overrides for the browser context.

Signature:

clearPermissionOverrides(): Promise<void>;

Returns:

Promise<void>

Example

const context = browser.defaultBrowserContext();
context.overridePermissions('https://example.com', ['clipboard-read']);
// do stuff ..
context.clearPermissionOverrides();