let options = {
method: "POST",
body: JSON.stringify({ apiKey: "keygiven" }),
headers: {
"Content-type": "application/json",
},
};
fetch("https://api.sauda.co/suvidha/allCompletedOffers", options)
.then((response) => console.log(response))
.catch((err) => console.log(err));
I get CORS error when I do this request to a remote API. How do I fix this? Is it fixable only who owns that domain?