簡體   English   中英

請求訪問的框架的協議為“ https”,正在訪問的框架的協議為“ http”

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

我正在嘗試使用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=?"

在stackoverlfow上的某個地方看到了此解決方案,但cannor記住在哪里。 它解決了我的問題!

hth

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM