拒绝显示文档,因为X-Frame-Options禁止显示 [英] Refused to display document because display forbidden by X-Frame-Options
问题描述
拒绝显示文档,因为X-Frame-Options禁止显示。
每次我点击检查登录状态而仅使用Facebook作为页面而不是我的用户帐户。这是很容易的,现在我知道这导致了问题,但显然我的用户可能不知道这一点。
有没有办法来确定用户是否正在使用Facebook作为页面?因为这似乎几乎毁了我的整个应用程序。
我也有这个问题,修正为:
该应用程序正在将用户重定向到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.
这篇关于拒绝显示文档,因为X-Frame-Options禁止显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!