title: Puppeteer - Connecting to HTTPS website through a proxy with authentication doesn't work
body: <p>I have been trying to solve this issue for the past 2 days and haven't been able to. I've looked this up everywhere and still no solution.. Here's the code:</p>
  <pre><code>const puppeteer = require('puppeteer-extra');
  const StealthPlugin = require('puppeteer-extra-plugin-stealth');
  
  puppeteer.use(StealthPlugin());
  
  const PROXY_SERVER_IP = 'IP.IP.IP.IP';
  const PROXY_SERVER_PORT = '1234';
  const PROXY_USERNAME = 'username';
  const PROXY_PASSWORD = 'password';
  
  (async () =&gt; {
    const browser = await puppeteer.launch({
      args: [`--proxy-server=http://${PROXY_SERVER_IP}:${PROXY_SERVER_PORT}`],
    });
    const page = await browser.newPage();
  
    await page.authenticate({
      username: PROXY_USERNAME,
      password: PROXY_PASSWORD,
    });
  
    await page.goto('https://www.google.ca/', {
      timeout: 0,
    });
  
    await page.screenshot({ path: 'test4.png', fullPage: true });
  
    await browser.close();
  })();
  </code></pre>
  <p>I get a navigation timeout error on the page.goto() call because it just hangs for some reason. I can't figure out why. When I put a proxy that doesn't require authentication, it works. I'm thinking of switching to another headless solution because of this one issue and I would really appreciate some help.</p>