Chrome 72+ seems to no longer accept --proxy-pac-url
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game Looping
--
Chapters
00:00 Chrome 72+ Seems To No Longer Accept --Proxy-Pac-Url
01:04 Answer 1 Score 7
01:21 Accepted Answer Score 3
02:29 Answer 3 Score 1
03:08 Answer 4 Score 11
03:36 Thank you
--
Full question
https://superuser.com/questions/1405499/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#googlechrome #proxy
#avk47
ANSWER 1
Score 11
I know this is an old thread but it still ranks high in Google search results.
I'm still successfully using a local .pac file with Chrome and Chromium 97 in Linux. I'm running Chrome with the following:
--proxy-pac-url='data:application/x-javascript-config;base64,'$(base64 -w0 /path/to/local/proxy.pac)
This basically encodes the .pac file as base64 string and loads it as if it where some web response.
If you want to use this on Windows, see @TBGs answer
ANSWER 2
Score 7
Chrome removed almost all functionality of net-internals for some reason and it sounds like they removed the pac flag that you were using.
chromium docs link to this site that still lists the flag as valid.
https://peter.sh/experiments/chromium-command-line-switches/
ACCEPTED ANSWER
Score 3
Chrome 72-75:
- As suggested in this bug report, you can disable 'Enable Network Service' in chrome://flags to go back to the old behaviour that supports file:// pac files. Starting Chrome from the command-line with
--disable-features=NetworkService
has the same effect.
Chrome 76:
It seems that the 'Network Service' option has been removed from
chrome://flags
(see the code commit).You can still run Chrome with
--disable-features=NetworkService
(ref) (e.g./Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-features=NetworkService
on a Mac), and it seems to read the PAC file ok, though there might be some issues (because lots of related code seems to have been deleted already - see this issue - I guess YMMV, and this won't be a long-term solution.As suggested in the bug report, you are probably better either installing a browser plugin that lets you define PAC settings, or use an http(s) PAC file.
ANSWER 4
Score 1
Unfortunately, Chrome plans to remove --disable-features=NetworkService
and support for file:///
PAC URLs entirely in the future.
Here's the upstream bug (and specifically the comment marking WONTFIX): https://bugs.chromium.org/p/chromium/issues/detail?id=839566#c40
The solution that should work on Chrome 76+, without requiring an httpd, is to take the .zip
file attached to that comment, unpack it somewhere permanent, and modify the bundled my_pac_script.js
to be a symlink to your previous file:///...
PAC file. Then install the extension in Chrome. It will load the PAC configuration when Chrome is started.