更新时间:2022-10-16 23:34:06
我也有这个问题,修正为:
该应用程序正在将用户重定向到Facebook(auth对话框)的登录屏幕,同时用户已经登录。
所以我更改了代码重定向到成功页面,如果登录,或对话框框如果没有登录。
I'm building a Facebook app and I have noticed that when attempting to get the login status of the user using their Javascript API, I sometimes get the error:
"Refused to display document because display forbidden by X-Frame-Options."
I've been able to reproduce this every time I hit the "check login status" page of the app only while using Facebook as a page, rather than my user account. This is easy enough to avoid now that I know this causes the problem, but obviously my users may not know this.
Is there a way to determine whether or not the user is using Facebook as a Page or not? Since that seems to pretty much ruin my entire app.
I had this problem too, fixed it with: The app was redirecting the user to a login screen from Facebook (auth dialog box), while the user was already logged in. So I changed the code to redirect either to the success page if logged in, or to the dialog box if not logged in.
Google+ API“400(错误请求)”和“拒绝在框架中显示......因为它将'X-Frame-Options'设置为'SAMEORIGIN'。错误
Facebook页面插件 - 拒绝显示在框架中,因为它将'X-Frame-Options'设置为'sameorigin'
拒绝在框架中显示"https://test.share.com/sites/demo/_layouts/15/",因为它将"X-Frame-Options"设置为"sameorigin".
Tensorboard 显示一个空白页面(拒绝从 'http://localhost:6006/index.js' 执行脚本,因为它的 MIME 类型)