Setting headers for dynamically-created pages #411
Replies: 2 comments
-
A little more information: I was able to stop tabs from automatically loading by calling
However, this only works for Relevant Puppeteer discussion: puppeteer/puppeteer#3667 |
Beta Was this translation helpful? Give feedback.
-
I think it's now addressed in master. But your original title says something about headers, but the description is about flatten mode. Hope it resolves all the issues :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to be able to set custom headers and read network traffic when a new page is dynamically created, e.g. via a mouse click, rather than explicitly created by my application with
create_page
.I'm trying to listen for
.on('Target.targetCreated')
events, but I believe these occur too late in the process, after headers can be meaningfully overwritten for the initial request.Beta Was this translation helpful? Give feedback.
All reactions