请求访问帧的协议为'https:// ',被访问帧的协议为'http'Linkedin

The frame requesting access has a protocol of 'https', the frame being accessed has a protocol of 'http' for Linkedin

本文关键字:访问 协议 http Linkedin https 请求      更新时间:2023-09-26

我正在尝试使用Linkedin的连接API。当我使用make调用时,它返回一个错误:

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.

有人知道为什么会出现这个错误吗?

非常感谢你的帮助!

与http/https位无关。

将"&callback=?"添加到您正在调用的URL中,它将发挥一些魔力!

这样的!

var url = "https://api.instagram.com/v1/users/" + id + "?access_token=" + instagramtoken +  + "&callback=?"

在堆栈重叠的某个地方看到了这个解决方案,但不记得在哪里了。它解决了我的问题!

hth