i already have done this on cURL on shell and it works , but when i tried with js i got a Cors error
i have used this js script :
const settings = {
"async": true,
"crossDomain": true,
"url": "(i have used here the api url to get zones )",
"method": "GET",
"headers": {
"Content-Type": "application/json",
'Authorization': 'Bearer ...',
'X-Auth-Key':'...',
'X-Auth-User-Service-Key':'...'
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});