【发布时间】:2012-02-22 17:44:59
【问题描述】:
以下代码不起作用。 Facebook 是如何做到这一点的?有什么办法吗?
<html>
<head></head>
<body>
<iframe src="http://www.facebook.com" width="500" height="500">
</iframe>
</body>
</html>
【问题讨论】:
以下代码不起作用。 Facebook 是如何做到这一点的?有什么办法吗?
<html>
<head></head>
<body>
<iframe src="http://www.facebook.com" width="500" height="500">
</iframe>
</body>
</html>
【问题讨论】:
他们这样做是为了避免诈骗和点击劫持。这是不可能做到的。这是一个不会出现在任何地方的安全功能......
【讨论】:
这是因为他们的源中有<meta http-equiv="X-Frame-Options" content="deny" />。
【讨论】: