-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS Issue: #45
Comments
Thanks for raising the issue @dromerosalem |
@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 |
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.
The text was updated successfully, but these errors were encountered: