I have a problem while sending request from jsfiddle to an api that I don't own, it returns an error message error message in console
async function send() {
const getIp = await axios.get('https://checkip.amazonaws.com/', {
headers: {
"Access-Control-Allow-Origin": "*"
}
}).then(() => {
console.log("1234");
}).catch((err) => console.log(err))
}
send();
so what seems to be the problem? and how can I solve this issue?
I would really appreciate your help.