Reputation: 1762
Is it possible to list/track http requests made by an iframe in a webpage? Can we do this using javascript in the parent DOM of the iframe?
Thanks, Kevin
Upvotes: 4
Views: 8464
Reputation: 8343
just do that to got all request that fired from page include iframe href
. yes not what you search for but something
window.performance.getEntries().map(e => e.name )
you can filter the initiator
if you like your
Upvotes: 2
Reputation: 17724
Unless the iframe tells you that it is requesting data, you can't do this. A javascript function in the document loaded in the iframe could do this.
You can check what document the iframe is pointing to, but if you are opening any random page if the iframe, you cannot track what all requests it is making.
Upvotes: 3