[英]The frame requesting access has a protocol of 'https', the frame being accessed has a protocol of 'http' for Linkedin
I am trying to use the connections API from Linkedin. 我正在尝试使用Linkedin中的连接API。 When I use the make the call it returns an error:
当我使用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.
Anyone know why this error occurs? 有人知道为什么会发生此错误吗?
Thank you very much for the help! 非常感谢你的帮助!
It has nothing to do with the http / https bit. 它与http / https位无关。
Add "&callback=?" 添加“&callback =?” to the URL you are calling, and it will do some magic!
到您正在调用的URL,它将起到一些神奇作用!
Like this! 像这样!
var url = "https://api.instagram.com/v1/users/" + id + "?access_token=" + instagramtoken + + "&callback=?"
Saw this solution somewhere on stackoverlfow but cannor remeber where. 在stackoverlfow上的某个地方看到了此解决方案,但cannor记住在哪里。 It solved my problem!
它解决了我的问题!
hth hth
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.