0
我有燼應用程序,它顯示的Instagram images.I我發出請求到Instagram的API的用戶信息,如個人資料相片和用戶名,但我得到的錯誤獲取CORS錯誤而獲得調用Instagram的API
錯誤
XMLHttpRequest無法加載https://api.instagram.com/v1/users/self/?access_token=25634653241563.63765274276357。請求的資源上沒有「Access-Control-Allow-Origin」標題。因此'Origin'http://www.example.co.in'不允許訪問。
在Instagram的管理客戶端我已經填寫的網站爲「http://example.co.in」
的請求
raw({
url:"https://api.instagram.com/v1/users/self/?access_token=25634653241563.63765274276357",
crossDomain: true,
}).then(function(response){
console.log(response)
})
在沒有更多信息的情況下了解您的情況的最佳答案有點困難。你會發布相關的代碼片段嗎? –
@PatrickBerkeley我編輯了更具體的問題。我實現了登錄部分。 – 800i