COVID-19 Fastest Update

ÜCRETSİZ PREMIUM
Taraf Thanh Dương | Güncelleyen a year ago | Health and Fitness
Tüm Tartışmalara Dön

Cors error when using the API

avatar
dasi.allspam
3 years ago

Hi
When I try to use the API I get the following error in my chrome console:

Access to fetch at ‘https://covid-19-fastest-update.p.rapidapi.com/summary’ from origin ‘http://localhost:3000’ has been blocked by CORS policy: The ‘Access-Control-Allow-Origin’ header contains the invalid value ‘’. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.

avatar
thanhinterpol commented 3 years ago

“Set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.” have you tried this way?

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun
Değerlendirme: 5 - Oy Sayısı: 1