CORS Error When requesting API response using js

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 ...',


$.ajax(settings).done(function (response) {