Chrome Flags Reference

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

--remote-allow-origins

What does --remote-allow-origins do?

Enables web socket connections from the specified origins only. '*' allows any origin.

Usage

CLILaunch Chrome with --remote-allow-origins using CLI

chrome --remote-allow-origins

PuppeteerLaunch Chrome with --remote-allow-origins using Puppeteer

const browser = await puppeteer.launch({
  args: ['--remote-allow-origins']
});

PlaywrightLaunch Chrome with --remote-allow-origins using Playwright

const browser = await chromium.launch({
  args: ['--remote-allow-origins']
});

SeleniumLaunch Chrome with --remote-allow-origins using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--remote-allow-origins')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK