简体   繁体   English

出于安全原因,不允许进行取景

[英]For security reasons, framing is not allowed

Trying to set up my first FB app, I tried using different PHP example codes, but for some reason when I try to access the app, I always get a Java window saying For security reasons, framing is not allowed . 尝试设置我的第一个FB应用程序时,我尝试使用不同的PHP示例代码,但是由于某些原因,当我尝试访问该应用程序时,总是会看到一个Java窗口,提示For security reasons, framing is not allowed I have SSL on my server, and another FB app on my server that's not using FB SDK is working fine. 我的服务器上装有SSL,并且服务器上的另一个未使用FB SDK FB应用程序正常运行。 Anyone has any ideas? 有人有什么想法吗?

You will get that same error on StackOverflow if you try to open it in a frame as well. 如果您也尝试在一个框架中打开它,则会在StackOverflow上收到相同的错误。 This is due to security concerns as it is the first step towards clickjacking a site. 这是出于安全考虑,因为这是点击劫持网站的第一步。 See this Coding Horror blog post for a full explanation. 有关完整说明,请参见此Coding Horror 博客文章

TL;DR; TL; DR; Don't frame external sites...including FB which is in a different space than your server. 不要构架外部站点...包括与服务器所在空间不同的FB。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM