简体   繁体   English

请求访问的框架的协议为“ https”,正在访问的框架的协议为“ http”

[英]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.

相关问题 Google资料库错误:请求访问的框架具有“https”协议,正在访问的框架具有“http”协议 - Google wallet error: The frame requesting access has a protocol of “https”, the frame being accessed has a protocol of “http” 请求访问的帧的协议为“ https”,正在访问的帧的协议为“ http”。 协议必须匹配 - The frame requesting access has a protocol of “https”, the frame being accessed has a protocol of “http”. Protocols must match 请求访问的框架协议为“https”,被访问的框架协议为“chrome-extension”。 协议必须匹配 - The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "chrome-extension". Protocols must match 协议HTTP和https不匹配 - Mismatch protocol http and https Javascript HTTPS-Frame对父HTTP-Frame的访问 - Javascript HTTPS-Frame Access to Parent HTTP-Frame 检查 URL 是否有协议 http(s) 如果没有添加一个 javascript - Check if URL has protocol http(s) if not add one with javascript 在一些链接中找到http协议并转换为https - Find http protocol in some links and convert it to https React - 不支持协议“https:”。 预期的“http:” - React - Protocol "https:" not supported. Expected "http:" 基于http或https协议动态加载javascript - Loading javascript dynamically based on the http or https protocol LinkedIn 登录:阻止了来源为“https://platform.linkedin.com”的框架访问具有来源的框架 - LinkedIn Login: Blocked a frame with origin “https://platform.linkedin.com” from accessing a frame with origin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM