Reputation: 1927
I am working on adding a new functionality to our web application. For this I have to load a web page from a seperate domain in an iframe in my web page and intercept all the HTTP calls made by the iframe in the javascript of my web page.
Can you please let me know how I can achieve this? I googled for this but couldn't find much information about this.
Upvotes: 1
Views: 2904
Reputation: 943193
You cannot spy on a user's activity on other domains using an iframe. Browsers forbid it.
Imagine if I did that to your bank's website!
postMessage
.Upvotes: 3