不安全的JavaScript尝试使用URL访问框架:域,协议和端口必须匹配。 [英] Unsafe JavaScript attempt to access frame with URL: Domains, protocols and ports must match.
问题描述
FB.init({appId:fbAppId,
status:true,
cookie:true,
xfbml:true,
oauth:true,
channelURL:webUrl +'/channel.html'
});
FB.Canvas.setAutoResize();
如果它在HTTP上但在HTTPS上工作,它不起作用。
示例网址:
http:/ /www.facebook.com/ListerineAU/app_300955373319633 - 不工作
https: //www.facebook.com/ListerineAU/app_300955373319633 - 作品
错误讯息:
不安全的JavaScript尝试通过URL https://s-static.ak.facebook.com/connect/从URL访问框架http://www.facebook.com/ListerineAU/app_300955373319633 ?xd_arbiter.php版本= 5#信道= f35120b198&安培;来源= HTTP%3A%2F%2Fjwteeth.aptira.com&安培; channel_path =%2F%3Ffb_xd_fragment%23xd_sig%3Df2eb2cde4%26安培;运输= PostMessage的。域,协议和端口必须匹配。
FB结束似乎是错误,有其他人遇到这种情况吗?
显然,我们公司的防火墙正在阻止
http://static.ak.facebook.com/connect/xd_arbiter.php?version=6#channel=f4f408309365a4&origin=http%3A%2F%2F [域]&安培; channel_path =%2F%3Ffb_xd_fragment%23xd_sig %3Df1af91536f1c7%26& transport = postmessage
说它在脚本中包含一些不安全感。 >
I'm trying to set the height of the app by calling:
FB.init({ appId: fbAppId,
status: true,
cookie: true,
xfbml: true,
oauth: true,
channelURL: webUrl + '/channel.html'
});
FB.Canvas.setAutoResize();
And it doesn't work if it's on HTTP but works on HTTPS.
Sample URL: http://www.facebook.com/ListerineAU/app_300955373319633 - doesn't work https://www.facebook.com/ListerineAU/app_300955373319633 - works
Error message:
Unsafe JavaScript attempt to access frame with URL http://www.facebook.com/ListerineAU/app_300955373319633 from frame with URL https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=5#channel=f35120b198&origin=http%3A%2F%2Fjwteeth.aptira.com&channel_path=%2F%3Ffb_xd_fragment%23xd_sig%3Df2eb2cde4%26&transport=postmessage. Domains, protocols and ports must match.
It seems to be error on FB ends, has anyone else experiencing this?
Apparently our company firewall is blocking the path to
http://static.ak.facebook.com/connect/xd_arbiter.php?version=6#channel=f4f408309365a4&origin=http%3A%2F%2F[domain]&channel_path=%2F%3Ffb_xd_fragment%23xd_sig%3Df1af91536f1c7%26&transport=postmessage
Saying that it contains some insecurity on the script.
这篇关于不安全的JavaScript尝试使用URL访问框架:域,协议和端口必须匹配。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!