--explicitly-allowed-ports
What does --explicitly-allowed-ports do?
Allows overriding the list of restricted ports by passing a comma-separated list of port numbers.
Usage
CLILaunch Chrome with --explicitly-allowed-ports using CLI
chrome --explicitly-allowed-portsPuppeteerLaunch Chrome with --explicitly-allowed-ports using Puppeteer
const browser = await puppeteer.launch({
args: ['--explicitly-allowed-ports']
});PlaywrightLaunch Chrome with --explicitly-allowed-ports using Playwright
const browser = await chromium.launch({
args: ['--explicitly-allowed-ports']
});SeleniumLaunch Chrome with --explicitly-allowed-ports using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--explicitly-allowed-ports')
driver = webdriver.Chrome(options=options)