Skip to content
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

Access-Control-Allow-Origin error #2

Open
akerd opened this issue Oct 18, 2017 · 0 comments
Open

Access-Control-Allow-Origin error #2

akerd opened this issue Oct 18, 2017 · 0 comments

Comments

@akerd
Copy link

akerd commented Oct 18, 2017

Hello, I know that plugin is a bit old but is a good starting point to start learning how to integrate GoodBarber with external API.

I uploaded the code on GoodBarber but I receive the following error in console when loading the plugin page.

Failed to load https://api.wunderground.com/api//conditions/q/40.728527,-73.987427.json: The 'Access-Control-Allow-Origin' header has a value 'http://www.wunderground.com' that is not equal to the supplied origin. Origin 'https://<my_site>' is therefore not allowed access.

Is there something that I miss here? Is it still possible this kind of integration with external websites or the API should be hosted only on the same domain where is hosted also the GoodBarber application?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant