49
rated 0 times
[
52]
[
3]
/ answers: 1 / hits: 61449
/ 13 Years ago, thu, september 15, 2011, 12:00:00
I'm trying to make an ajax request to the google contacts API with the following setup:
$.ajax({
url: https://www-opensocial.googleusercontent.com/api/people/@me/@all,
dataType: 'jsonp',
data: {
alt: 'json-in-script'
},
headers: {
'Authorization': 'Bearer ' + token
},
success: function(data, status) {
return console.log(The returned data, data);
}
});
But the Authentication header doesn't seem to get set. Any ideas?
More From » jquery