1
I have the following code in Js on Node, using Electron:
const {app, BrowserWindow} = require('electron')
app.on('ready', function(){
mainWindow = new BrowserWindow();
mainWindow.loadURL("https://google.com/")
})
it is simple, just open a new window in windows with the link that is typed in the URL. I need to open this link, or any link that is there, using a proxy server configured directly on Node lines. Make the HTTP connection of this window using a proxy.
Very good!! I was able to solve it another way, using this command line: mainwindow.webContents.Session.setProxy({proxyRules: '127.0.0.1:8080'}); , but yours is very good too, thank you very much. Can you tell me how to open a proxy with Node? see all requests that are made with the browser and allow or block access to the requested websites? I managed to do it with a Framework, but I can’t give a res.end(') using it and I need another method
– Jos Eduardo Sampaio de Aguiar