COVID-19 Fastest Update

GRATIS CON POSSIBILITÀ DI UPGRADE
Da Thanh Dương | Aggiornamento un anno fa | Health and Fitness
Torna a tutte le discussioni

Cors error when using the API

avatar
dasi.allspam
2 anni fa

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 2 anni fa

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

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti
Valutazione: 5 - Voti: 1