2
我正在尝试使用来自Linkedin的连接API。当我使用拨打电话时,它返回一个错误:请求访问的帧的协议为'https',被访问的帧的Linkedin的协议为'http'
Unsafe JavaScript attempt to access frame with URL http://www.*example*.com/ from frame with URL https://api.linkedin.com/uas/js/xdrpc.html?v=0.0.2000-RC1.26335-1404#www.*example*.com&xdm_c=default4901&xdm_p=1&mode=cors. The frame requesting access has a protocol of 'https', the frame being accessed has a protocol of 'http'. Protocols must match.
任何人都知道为什么会发生此错误?
非常感谢您的帮助!
我认为它说,使用JavaScript调用API LinkedIn的页面有一个http:// URL,但它应该是https://开头,不是吗? – piokuc 2013-04-11 16:30:07
错误提示“父页面和iframe都需要使用相同的协议。”意味着他们都必须是http或https。你不能混用它们。 – epascarello 2013-04-11 16:44:11
你在使用Ajax调用,还是在嵌入Iframe? – ShaunOReilly 2013-04-12 01:40:40