Chrome Flags Reference

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

--allow-cross-origin-auth-prompt

What does --allow-cross-origin-auth-prompt do?

Allows third-party content included on a page to prompt for a HTTP basic auth username/password pair.

Usage

CLILaunch Chrome with --allow-cross-origin-auth-prompt using CLI

chrome --allow-cross-origin-auth-prompt

PuppeteerLaunch Chrome with --allow-cross-origin-auth-prompt using Puppeteer

const browser = await puppeteer.launch({
  args: ['--allow-cross-origin-auth-prompt']
});

PlaywrightLaunch Chrome with --allow-cross-origin-auth-prompt using Playwright

const browser = await chromium.launch({
  args: ['--allow-cross-origin-auth-prompt']
});

SeleniumLaunch Chrome with --allow-cross-origin-auth-prompt using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--allow-cross-origin-auth-prompt')

driver = webdriver.Chrome(options=options)