3 ms·
An unbelievable number of scripts implementing a browser built-in/extension, leading to this (Opera): Error https://play.google.com/store The website
by solox3 14y ago
An unbelievable number of scripts implementing a browser built-in/extension, leading to this (Opera):
Error
https://play.google.com/store
The website does not permit its content to be displayed in a frame. It must be displayed in a separate window.
There are definitely better solutions.
- justindocanto 14y agoI agree there are better solutions but some people dont bother with plugins or scripts and/or just want a simple/quick web-based solution... and that is what this is aimed for. Also worth noting: I literally spent 2 hours max on it. I know a few people who could use it, myself included, coded it real quick... and then here we are.
- artursapek 14y agoHow does one set their website to be iframe unfriendly? Intriguing.
- regecks 14y agoThe Google Play store tells the browser what framing policy to use with X-Frame-Options (https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Option...): x-frame-options:SAMEORIGIN However you could also check for: window.top == window
- abrkn 14y agoif (window.top !== window) { window.top.location = window.location } It's useful if your website is being iframed to display ads or exploited with cross window communication security holes (old school) http://i.imgur.com/ePFbiIT.png http://i.imgur.com/ePFbiIT.png
- justindocanto 14y agoWould it be wrong of me to implement on the site to prevent that from happening? haha