4

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.

UltrasoundJelly
  • 1,845
  • 2
  • 18
  • 32

0 Answers0