I used Axios for API, here is my code. I am getting CROS error.
axios({
method: 'GET',
headers : { 'Content-Type': 'application/json',
'Access-Control-Allow-Origin' : '*',
'mode': 'cors',
'Authorization':'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1N....'
},
url: baseURL,
}).then(function (response) {
console.log(response);
});