Getting CORS issue while accessing API.

(index):1 Access to XMLHttpRequest at 'https://api.weatherbit.io/v2.0/current?city=Fort%20Pierce%2C%20FL&key=sdfsdfasdfafasdfasdcasdcasfasd' from origin 'http://localhost:24300' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Category: API

Replies

John says:
May, Monday, 2019 at 4:26PM

Cross origin requests are allowed with our API.

Please verify that your code acknowledges the "Access-Control-Allow-Origin" response header.

Thanks,
John at Weatherbit

Leave A Reply

What is 5+1+1?