Posted on Mon, 06 May 2019 by Ashish Mishra
Admin AnsweredGetting 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.
Replies
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