Hi,
I’m using an Ajax call as:
var settings = {
"async": true,
"crossDomain": true,
"url": "https://api.companieshouse.gov.uk/company/06715377",
"method": "GET",
"headers": {
"Authorization": "****my key*****",
"cache-control": "no-cache",
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Works in IE, but chrome give this error in console:
Failed to load https://api.companieshouse.gov.uk/company/06715377: Request header field cache-control is not allowed by Access-Control-Allow-Headers in preflight response.
I’m restricted to types of api call as embedded into another system so jquery it has to be…
Any ideas?