CORS Issue:
The "Access to XMLHttpRequest at 'https://goweather.herokuapp.com/weather/{city}' from origin 'https://dromerosalem.github.io/' has been blocked by CORS policy" error indicates that the API trying to access does not allow cross-origin requests from your deployed GitHub Pages site. This is a security measure enforced by the server hosting the API.
Is it possible to enable CORS so we can deploy at GitHub pages.
Thanks for raising the issue @dromerosalem Let me have a look over the next days if I can configure it in the server/app to allow it.
@robertoduessmann have you configured and allowed it?
Sadly i didnt find a way to fix this yet @shahzaibfullStackdev355
I host the app at Heroku and I couldn't find an out-of-the-box solution to enable it.
I was reading some posts and it might be required to be solved via code when the apis are exposed https://stackoverflow.com/questions/57727921/cors-issues-github-pages-heroku
ok, I will also try to figure it out how to fix this error
You will need a proxy for that @dromerosalem
Sory for the delay to come back here @dromerosalem but i deployed the app under a new domain, can you pls try again with https://goweather.xyz/v2/weather/Berlin and see if you have the same issue still?