After working perfectly for about a month, I'm now getting a
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Here's a simplified version of the ajax request.
var feedurl = "https://www.google.com/m8/feeds/contacts/EMAIL/full?oauth_token=TOKEN&max-results=50&alt=json&v=3.0";
$.ajax({
url: feedurl,
dataType: "json",
success: function(data) {
console.log(data);
//do stuff
}
});
Changing dataType
to jsonp
doesn't change anything. In the google api console I have Accept requests from these HTTP referrers (web sites)
set to https://*.MYWEBSITE.com/*
My only thought is that maybe Chrome/Safari became more restrictive in the latest updates.
It seems that our service starts to getting the error of
right after the issue is fixed here...
We use ajax + jsonp to fetch data from google contacts.
Has anyone else experienced the same thing? And who knows how to fix it?