Firefox seems to be preventing this request, while Chrome is processing it fine. What am I doing wrong?
http://jsfiddle.net/e8qu2g9j/1/
$.ajax({
url: "http://maps.googleapis.com/maps/api/geocode/json",
data: {
bounds: "-35.2545,149.4947|-31.9955,152.5728",
region: "au",
components: "country:AU|administrative_area:NSW",
address: "Central Station"
}
});
I've tried adding:
crossDomain: true,
xhrFields: {
mozAnon: true,
mozSystem: true
},
but to no avail.
Firefox 31.0 keeps giving me:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://maps.googleapis.com/maps/api/geocode/json?bounds=-35.2545%2C149.4947%7C-31.9955%2C152.5728®ion=au&components=country%3AAU%7Cadministrative_area%3ANSW&address=Central+Station. This can be fixed by moving the resource to the same domain or enabling CORS.
EDIT: This is working fine for me in a new firefox profile, but not my main one. What setting could I have changed?