I have a react project, and yesterday I deployed it in vercel, now I have a CORS issue. Could you tell me how can I solve it? Thanks in advance.
I want to deploy a react project using an API from Zoho Catalog. here my request.
useEffect(()=>{
const peticion = fetch(urlPost,{
method: 'POST',
});
peticion
.then((ans)=>{return ans.json()})
.then((resp)=>{
const reslt = resp.access_token;
return fetch(urlGet,{
method: "GET",
headers:{
'Authorization':`Zoho-oauthtoken ${reslt}`,
}}
)})
.then((answer) => { return answer.json() })
.then((resp) => {
const result = resp.data
setData(result)
setFiltered(result)
})
},[])