有人正在使用iframe嵌入我的网站
<iframe src="http://example.org" sandbox=""></iframe>
通过使用沙盒属性,我的网站无法在其中使用iframe阻止器。并且它可以轻松地被嵌入。
我的网站上的框架破坏程序:
if (window.top !== window.self) window.top.location.replace(window.self.location.href);
当使用sandbox属性时,是否有编程的方法重定向到我的网站,当它被嵌入框架中时?
X-Frame-Options
HTTP响应头。 - Palpatim