我正在尝试调用 https://www.instagram.com/"+username+"/?__a=1
但出现以下错误。
'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access.
但是该 URL 在浏览器上正常工作
最佳答案
?__a=1
方法不支持JSONP
,因此无法在客户端进行API调用,可以在服务器端进行http get请求。
关于javascript - 有没有办法在没有访问 token 的情况下调用 instagram api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44565405/