Closed ndanzz701 closed 4 years ago
when I open https://www.google.com with a simple proxy puppeter code
when opening it manually
this is my code
const puppeteer = require('puppeteer-core'); const proxyRequest = require('puppeteer-proxy').proxyRequest const myProxy = `http://my private proxy with auth; (async () => { const browser = await puppeteer.launch({ executablePath: 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe', headless:false }); const page = await browser.newPage(); await page.setRequestInterception(true); page.on('request', async (request) => { await proxyRequest({ page, proxyUrl: myProxy, request, }); }); await page.goto('https://www.google.com'); })();
I believe that's expected since proxy intercepts your request.
when I open https://www.google.com with a simple proxy puppeter code![not secure](https://user-images.githubusercontent.com/25815501/83375814-53205200-a3fa-11ea-8b76-fde7eb82f71d.png)
when opening it manually![secure](https://user-images.githubusercontent.com/25815501/83375833-67644f00-a3fa-11ea-97fc-7a1a2f1e8609.png)
this is my code