【发布时间】:2016-12-13 06:19:03
【问题描述】:
我正在开发一些使用 auth0 和 IONIC 的测试应用程序。我已经和auth0建立了连接,现在我想通过这段代码获取用户数据:
$http({
method: 'GET',
url: 'https://api.instagram.com/v1/users/self/?access_token='+store.get('accessToken')
}).then(function successCallback(response) {
console.log(response);
}, function errorCallback(response) {
console.log(response);
});
我收到 400 Access-Control-Allow-Origin 错误。谁能告诉我该怎么做?我在互联网上找不到任何可以帮助我的想法...
【问题讨论】:
标签: javascript angularjs ionic-framework instagram auth0