<script src="../global.js"></script> let baseUrl = window.g.baseUrl; $.ajax({ type: "GET", url: `${baseUrl}Dispatching/api/services/app/HomePageChartService/GetCityCoordinates`, dataType: "json", contentType: 'application/json', headers: { 'access_token': getCookie('token') }, async: false, success: function (data) { console.log(data); } })