Chrome Flags Reference

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

--trusted-download-sources

What does --trusted-download-sources do?

Identifies a list of download sources as trusted, but only if proper group policy is set.

Usage

CLILaunch Chrome with --trusted-download-sources using CLI

chrome --trusted-download-sources

PuppeteerLaunch Chrome with --trusted-download-sources using Puppeteer

const browser = await puppeteer.launch({
  args: ['--trusted-download-sources']
});

PlaywrightLaunch Chrome with --trusted-download-sources using Playwright

const browser = await chromium.launch({
  args: ['--trusted-download-sources']
});

SeleniumLaunch Chrome with --trusted-download-sources using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--trusted-download-sources')

driver = webdriver.Chrome(options=options)