4 ms·
It's done to escape from iFrame jail attempts. Rogue site loads bank site in iFrame, end user types in their password...
by janekm 9y ago
It's done to escape from iFrame jail attempts. Rogue site loads bank site in iFrame, end user types in their password...
- ams6110 9y agoBrowsers are not supposed to let javascript access the DOM or events in a cross-domain iframe, is that not correct?
- rypskar 9y agoIsn't it easier to set X-Frame-Options to deny or sameorigin?
- duskwuff 9y agoYes, absolutely. But that didn't work on some older browsers (like MSIE7 and earlier), so some sites settled on weird "solutions" like this one...
- TrickyRick 9y agoWhy not implement a good 2FA then to avoid the problem entirely? The way I see it if someone can steal your bank login details using iframes as a weapon then the bank is doing something wrong. Banning pop-ups entirely would force the banks to shape up