I have a cross-domain iframe that's just like:
<iframe src="example.com"></iframe>
You can easily open the link(example.com) on a browser, and see its content(inspect element/view source). And in google, the iframe's contents are also visible in the website by inspect element. Now why can't i just see that iframe site's content in my website through code? Why would it be a security flaw if i can simply:
- open the iframe's src link, and then inspect element to view the sites content
or
- view the iframe's content in my site through google's inspect element
?
I just want to get the iframe video's src link for example.