I'm trying to perform a simple GET request to the google maps API, but my browser keeps blocking the response. I'm getting the following warning in my console:
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=address1&destinations=address2&key=api_key with MIME type application/json. See https://www.chromestatus.com/feature/5629709824032768 for more details.
I censored the addresses and api key for reading convenience.
This is my JavaScript code:
$.ajax({
url: https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=address1&destinations=address2&key=api_key,
type: "GET",
dataType: 'jsonp',
cache: false
});