--allow-insecure-localhost
What does --allow-insecure-localhost do?
Enables TLS/SSL errors on localhost to be ignored (no interstitial, no blocking of requests).
Usage
CLILaunch Chrome with --allow-insecure-localhost using CLI
chrome --allow-insecure-localhostPuppeteerLaunch Chrome with --allow-insecure-localhost using Puppeteer
const browser = await puppeteer.launch({
args: ['--allow-insecure-localhost']
});PlaywrightLaunch Chrome with --allow-insecure-localhost using Playwright
const browser = await chromium.launch({
args: ['--allow-insecure-localhost']
});SeleniumLaunch Chrome with --allow-insecure-localhost using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--allow-insecure-localhost')
driver = webdriver.Chrome(options=options)