Делаю запрос через axios:
const send = () => {
const headers = {
"Content-Type": "application/json",
"Access-Control-Allow-Origin": "*"
}
axios.post('https://hookb.in/eK160jgYJ6UlaRPldJ1P', postObj, {
headers: headers,
}).then(response => console.log(response))
};
возвращает ошибку:
Access to XMLHttpRequest at 'https://hookb.in/eK160jgYJ6UlaRPldJ1P' from origin 'https://leasing-auto.vercel.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource