getting cors error while making an ajax request in axios... localhost has been blocked by cors and header contains multiple values
{
try {
// MAKING AN AJAX GET REQUEST THROUGH AXIOS
const resp = await axios({
method: 'get',
url: 'https://xxxxx:1002/api/RechargeServices/OperatorAndCircleInfo?MobileNo=xxxxxx&RechargeType=1&RechargeMode=2',
headers: { 'Access-Control-Allow-Origin': "*"}
})
console.log(resp)
}
catch (error) {
console.log(error.message)
}
}```