gpt4 book ai didi

facebook - 不安全的 JavaScript 尝试访问具有 URL : Domains, 协议(protocol)和端口的框架必须匹配。

转载 作者:行者123 更新时间:2023-11-30 05:27:41 25 4
gpt4 key购买 nike

我正在尝试通过调用来设置应用程序的高度:

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 - 作品

错误信息:

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.

这似乎是 FB 端的错误,有没有其他人遇到过这种情况?

最佳答案

在 facebook bug 上找到这个列表

Latest response from Facebook

Øyvind Sean Kinsey This is an expected exception that is used to test for a condition - this has no side effects. 26/04/2012 22:29 · Status changed to By Design

https://developers.facebook.com/bugs/122268321247958

关于facebook - 不安全的 JavaScript 尝试访问具有 URL : Domains, 协议(protocol)和端口的框架必须匹配。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10577590/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com