Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--allow-third-party-modules

What does --allow-third-party-modules do?

Allows third party modules to inject by disabling the BINARY_SIGNATURE mitigation policy on Win10+. Also has other effects in ELF.

Usage

CLILaunch Chrome with --allow-third-party-modules using CLI

chrome --allow-third-party-modules

PuppeteerLaunch Chrome with --allow-third-party-modules using Puppeteer

const browser = await puppeteer.launch({
  args: ['--allow-third-party-modules']
});

PlaywrightLaunch Chrome with --allow-third-party-modules using Playwright

const browser = await chromium.launch({
  args: ['--allow-third-party-modules']
});

SeleniumLaunch Chrome with --allow-third-party-modules using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--allow-third-party-modules')

driver = webdriver.Chrome(options=options)

Build Conditions

WIN