title: Puppeteer's page.cookies() not retrieving all cookies shown in the Chrome dev tools
body: <p>Using puppeteer, I am trying to retrieve all cookies for a specific web site (i.e. <code>https://google.com</code>) from Node.js.</p>
  
  <p>My code is:</p>
  
  <pre><code>// Launch browser and open a new page
  const browser = await puppeteer.launch({ headless: true, args: ['--disable-dev-shm-usage'] });
  const page = await browser.newPage();
  await page.goto(url, { waitUntil: 'networkidle2' });
  var cookies = await page.cookies();
  console.log(cookies);
  await browser.close();
  </code></pre>
  
  <p>It only retrieves 2 cookies, named <code>1P_JAR</code> and <code>NID</code>. However, when I open the Chrome Dev tools, it shows a lot more.</p>
  
  <p>I tried using the Chrome Dev Tools directly instead of puppeteer but I am getting the same results.</p>
  
  <p>Is there another function I should call? Am I doing it correctly?</p>