Chrome Flags Reference

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

--translate-security-origin

What does --translate-security-origin do?

Overrides security-origin with which Translate runs in an isolated world.

Usage

CLILaunch Chrome with --translate-security-origin using CLI

chrome --translate-security-origin

PuppeteerLaunch Chrome with --translate-security-origin using Puppeteer

const browser = await puppeteer.launch({
  args: ['--translate-security-origin']
});

PlaywrightLaunch Chrome with --translate-security-origin using Playwright

const browser = await chromium.launch({
  args: ['--translate-security-origin']
});

SeleniumLaunch Chrome with --translate-security-origin using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--translate-security-origin')

driver = webdriver.Chrome(options=options)