Skip to content Skip to sidebar Skip to footer

I'm Trying To Get Data From Meta Weather Api, But Its Not Letting Me

I'm trying to get data from meta weather API. due to CORS issues, I am using this proxy thing called 'crossorigin.me'. still, its not letting me get the data. I even included 'mode

Solution 1:

It's possible the CORS workaround service you're using is unavailable, either due to a heavy traffic load or other reasons.

Thankfully, it's really, really easy to set up your own personal proxy using heroku.

Follow the directions in the first response of this thread: cors-anywhere.herokuapp.com not working (503). What else can I try?

Hope this helps.

Solution 2:

The MetaWeather API doesn't support CORS. You'll need to run your own server application on the same domain as your frontend to make the request and get the API response, and specify the appropriate headers: Access-Controll-Allow-Origin: * for example. See this article: https://jeremyliberman.com/2019/02/11/fetch-has-been-blocked-by-cors-policy.html

Look into Node.js and Express as a place to start.

Post a Comment for "I'm Trying To Get Data From Meta Weather Api, But Its Not Letting Me"