From a44621f8f50cac9ba6614b0f89320d210370047a Mon Sep 17 00:00:00 2001 From: xeaon Date: Fri, 11 Dec 2020 07:09:08 +0100 Subject: [PATCH] fix: add setRequestInterception (#1312) Fixes #826 --- src/store/lookup.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/lookup.ts b/src/store/lookup.ts index 6ab6a6159d..0b2c062286 100644 --- a/src/store/lookup.ts +++ b/src/store/lookup.ts @@ -160,6 +160,7 @@ async function lookup(browser: Browser, store: Store) { ? await browser.createIncognitoBrowserContext() : browser.defaultBrowserContext(); const page = await context.newPage(); + await page.setRequestInterception(true); page.setDefaultNavigationTimeout(config.page.timeout); await page.setUserAgent(await getRandomUserAgent(browser));