How to run Chrome headless with noproxy on Linux?

Solution 1:

I've also run into this issue and it appears that --no-proxy-server is not supported when in headless mode. See Chromium Issue 829247

The workaround I've found is passing these two flags to Chrome along with --headless

--proxy-server='direct://'

And:

--proxy-bypass-list=*

After passing these flags Chrome ignores the system proxy settings and as far as I've tested they work on my test machine. --proxy-server='direct://' alone doesn't appear to be enough to get this to work, you need both flags set.