阻止了源为“< mydomain>"的帧.从访问来源为"https://www.facebook.com"的框架中 [英] Blocked a frame with origin "<mydomain>" from accessing a frame with origin "https://www.facebook.com"

查看:89
本文介绍了阻止了源为“< mydomain>"的帧.从访问来源为"https://www.facebook.com"的框架中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我已经检查了该帖子: Facebook:不安全的JavaScript问题(document.domain值应相同)

First of all, I checked this post already: Facebook: Unsafe JavaScript issue (document.domain values should be same)

但是那是关于Facebook上的页面.我在自己网站的页面上的Chrome控制台中遇到的错误是:

But that is about a page on Facebook. The error I'm getting in my Chrome console on a page on my own website is:

Blocked a frame with origin "<mydomain>" from accessing a frame with origin "https://www.facebook.com". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match. fckeditorcode_gecko.js:36

可以肯定的是,我已从Facebook注销,但是仍然发生错误.

To be sure, I logged out from Facebook, but still the error occurs.

第36行以

var FCKTools={};FCKTools.CreateBogusBR=function(A){var B=A.createElement('br');B.setAttribute('type','_moz');return B;};

该如何解决?

推荐答案

这似乎是FCKEditor库和您包含在页面中的facebook库之间的冲突.可能是喜欢"按钮,我在api.google.com上使用了Google Plus的+1按钮.

This seems to be a conflict between FCKEditor library and a library of facebook you included in the page. Probably the Like Button, I had the same with +1 button of Google Plus with api.google.com.

快速修复:删除2个库中的一个

Quick Fix: Remove one the 2 library

您的FCK编辑器库似乎也很旧,您可以在这里更新它: http://ckeditor.com/

Your FCK Editor library seems old also, you can update it here: http://ckeditor.com/

另一个快速修复方法.但是我不确定副作用: 打开"fckeditorcode_gecko.js": CTRL + F搜索字符串:

Another quick hack to fix it. But I'm not sure of the side effect: open "fckeditorcode_gecko.js": CTRL+F to search the string:

"if (A.document) A.document.parentWindow=A"

并替换为

"return"

最好

这篇关于阻止了源为“&lt; mydomain&gt;"的帧.从访问来源为"https://www.facebook.com"的框架中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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