Chrome Flags Reference

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

--allow-http-screen-capture

What does --allow-http-screen-capture do?

Allow non-secure origins to use the screen capture API and the desktopCapture extension API.

Usage

CLILaunch Chrome with --allow-http-screen-capture using CLI

chrome --allow-http-screen-capture

PuppeteerLaunch Chrome with --allow-http-screen-capture using Puppeteer

const browser = await puppeteer.launch({
  args: ['--allow-http-screen-capture']
});

PlaywrightLaunch Chrome with --allow-http-screen-capture using Playwright

const browser = await chromium.launch({
  args: ['--allow-http-screen-capture']
});

SeleniumLaunch Chrome with --allow-http-screen-capture using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--allow-http-screen-capture')

driver = webdriver.Chrome(options=options)