COVID-19 Fastest Update

फ्रीमियम
द्वारा Thanh Dương | अपडेट किया गया एक वर्ष पहले | Health and Fitness
सभी चर्चाओं पर वापस जाएं

Cors error when using the API

avatar
dasi.allspam
3 वर्ष पहले

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 वर्ष पहले

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

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें
रेटिंग: 5 - वोट: 1