Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Setting a proxy in a Session with `session.setProxy` does nothing on electron >= 5 #21050
Requests ignore the proxy set with
$ git clone https://github.com/arantes555/electron-bug-net-proxy.git $ npm install $ npm start
In this repo, we test this by launching a simple HTTP server and 2 proxies, and running a simple script against them using multiple versions of electron.
When running this, we can see that in electron@4, the requests correctly go through the proxy. However, starting with electron@5, the requests do not follow the proxy at all. Requests that should go through the simple unauthenticated succeed anyway, but there is no log from the proxy, and those that should go through the authenticated proxy fail when setting the proxy works (because credentials are not provided), but succeed on electron@5 and greater.