You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to this and trying to use Oauth with Spotify. How do i get the logged in user info?
I have tried this:
OAuth.callback('spotify')
.done(function(result) {
console.log('yeees ', result);
})
.fail(function (err) {
console.log('noooo ' + err);
});
This returns a access token
Then i try this:
OAuth.callback('spotify')
.done(function(result) {
result.get('/me')
.done(function(response){
console.log('response ', response);
})
})
This returns:
Access to XMLHttpRequest at 'https://oauth.io/request/spotify/%2Fme' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
GET https://oauth.io/request/spotify/%2Fme net::ERR_FAILED
What am i doing wrong?
The text was updated successfully, but these errors were encountered:
Hi,
I'm new to this and trying to use Oauth with Spotify. How do i get the logged in user info?
I have tried this:
OAuth.callback('spotify')
.done(function(result) {
console.log('yeees ', result);
})
.fail(function (err) {
console.log('noooo ' + err);
});
This returns a access token
Then i try this:
OAuth.callback('spotify')
.done(function(result) {
result.get('/me')
.done(function(response){
console.log('response ', response);
})
})
This returns:
Access to XMLHttpRequest at 'https://oauth.io/request/spotify/%2Fme' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
GET https://oauth.io/request/spotify/%2Fme net::ERR_FAILED
What am i doing wrong?
The text was updated successfully, but these errors were encountered: