I'm trying to get ALL request headers to properly inspect the request, but it only returns headers like the User-Agent and Origin, while the original request contains a lot more headers.
Is there a way of actually getting all the headers?
For reference, here's the code:
const puppeteer = require('puppeteer');
const browser = await puppeteer.launch({
headless: false
});
const page = await browser.newPage();
page.on('request', req => {
console.log(req.headers());
});
await page.goto('https://reddit.com');
Thanks in advance, iLinked