Facebook页面插件 - 拒绝显示在框架中,因为它将'X-Frame-Options'设置为'sameorigin' [英] Facebook Page Plugin - Refused to display in a frame because it set 'X-Frame-Options' to 'sameorigin'

查看:1350
本文介绍了Facebook页面插件 - 拒绝显示在框架中,因为它将'X-Frame-Options'设置为'sameorigin'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以这是我的网站,我在右栏中嵌入了页面插件:
https://trade.z.com/hk/tc/



它可以在其他浏览器中正常使用,但在Chrome中无法使用。
等待几分钟,开发人员工具的控制台中会提示错误。
完整的错误信息如下:

拒绝显示' HTTPS: //www.facebook.com/xti.php?xt=AZVp-LKocyBZqjT4dWwYI35ld4DtHr-18CJRT0Hkj94pDsEg0xQ6Huxs6yrp3fmq2cu7K5mYZ5FLGEpwTSBVR2q-ixCw8z f7TeQTEeE5mS3CUStk4vjo06NfLORxOEtFkK-ra_zb5E5lpxmLr6DyPkPd9KougTl8hhhe-Jv1AE1Zl-skzEHvVMRlJ6EoPH0UTSD23MhqQKSjL1R-egZRDSLD9FH3JR267SA7H9a5gZysuA8Daf999a4FP6WkyHYmQC8mtmMb_UMIeycl8qnakxN7vXZEK0xY8SI6dpDkgMDiZQyWpFatzx8ESy7b7eBRHJfam5Ru_AkgC7c4UeoE8dYlSyWtKDoTGyio2nH_02YMfd9OSPkBQZcjOhSCb1gLO9f9w07QxHK6q7pS6i3p2KS-UhfPncspgcQI-4k8qbQG-DZrZlHtGCXJloZB9hSwtZ68pTG8wtnCunKF5YSJuAZ5sAsFqYFsmkUrB-tExVIKTQJH413awON4bHNTcbHdx306leBNXemENdLL8QMkZPkAtVTYKKD3x7_Ii_dMwznfY2bb_0KFWGM --_ ilgWJvx9ostH-iKsrGnbeToaodNu0cD9CI4wIGPtDkr47hSp7RDUaLMCIdzcMlnHjvPIajE4BcgGwo_LlNpxItVkStkA_cIEFbhEh4fHPk-Cka39TRVg&安培; ISV = 1&安培; CTS = 1512539623&安培; CSP '在一个帧,因为它设置' X-帧 - 选项'改为'sameorigin'。



有没有办法解决这个错误?
我试图在我的网站的Apache上进行编辑,但它不起作用。
请帮助。

解决方案

当我将插件放入 web site 。无论我试图修改插件代码还是在 fanpage a>,它始终存在的错误。

 拒绝显示'https://www.facebook.com/xti.php ?...'
,因为它将'X-Frame-Options'设置为'sameorigin'。

幸运的是,我在 blogspot wordpress ,当我插入插件时没有错误。所以我只是比较它们,发现问题是由于时间轴


将代码中没有时间轴标签的插件放入代码中(在选项中删除它)

在我的情况下,虽然我的时间线不再显示,但错误消失了。没有选择。



< img src =https://i.stack.imgur.com/6aWY6.pngalt =Facebook页面插件 - 拒绝显示在框架中,因为它将'X-Frame-Options'设置为'sameorigin'>


So here is my website which i have embeded the Page Plugin in the right column: https://trade.z.com/hk/tc/

It works perfectly in other browsers but not in Chrome. Wait for a few mins and there will be an error prompted in the the developer tool's console. Full error message as below:

Refused to display 'https://www.facebook.com/xti.php?xt=AZVp-LKocyBZqjT4dWwYI35ld4DtHr-18CJRT0Hkj94pDsEg0xQ6Huxs6yrp3fmq2cu7K5mYZ5FLGEpwTSBVR2q-ixCw8zf7TeQTEeE5mS3CUStk4vjo06NfLORxOEtFkK-ra_zb5E5lpxmLr6DyPkPd9KougTl8hhhe-Jv1AE1Zl-skzEHvVMRlJ6EoPH0UTSD23MhqQKSjL1R-egZRDSLD9FH3JR267SA7H9a5gZysuA8Daf999a4FP6WkyHYmQC8mtmMb_UMIeycl8qnakxN7vXZEK0xY8SI6dpDkgMDiZQyWpFatzx8ESy7b7eBRHJfam5Ru_AkgC7c4UeoE8dYlSyWtKDoTGyio2nH_02YMfd9OSPkBQZcjOhSCb1gLO9f9w07QxHK6q7pS6i3p2KS-UhfPncspgcQI-4k8qbQG-DZrZlHtGCXJloZB9hSwtZ68pTG8wtnCunKF5YSJuAZ5sAsFqYFsmkUrB-tExVIKTQJH413awON4bHNTcbHdx306leBNXemENdLL8QMkZPkAtVTYKKD3x7_Ii_dMwznfY2bb_0KFWGM--_ilgWJvx9ostH-iKsrGnbeToaodNu0cD9CI4wIGPtDkr47hSp7RDUaLMCIdzcMlnHjvPIajE4BcgGwo_LlNpxItVkStkA_cIEFbhEh4fHPk-Cka39TRVg&isv=1&cts=1512539623&csp' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Is there a way I can solve this error? I tried to do edits on my website's Apache and it didn't work. Please help.

解决方案

I got the same error when I put the plugin in my web site. Whatever I tried to modify either the plug in code or do something in the fanpage, the error it always remain.

Refused to display 'https://www.facebook.com/xti.php?...' 
in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Just lucky, there are blog site I have in blogspot and wordpress which has no error when I put the plugin. So I just compared them and found the problem caused is all about the timeline:

Put the plugin without timeline tabs in the code (delete it in the option)

In my case although my timeline is no more show up but the error is gone. No choice..

这篇关于Facebook页面插件 - 拒绝显示在框架中,因为它将'X-Frame-Options'设置为'sameorigin'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆