Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Missing 'Access-Control-Allow-Origin' header when making an API request. #204

Open
Keraito opened this issue Jan 17, 2017 · 0 comments
Open

Comments

@Keraito
Copy link

Keraito commented Jan 17, 2017

I've wanted to experiment with the track-o-bot API in Polymer and tried to retrieve my match history. But the request fails with the error message:

XMLHttpRequest cannot load https://trackobot.com/profile/etc. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.

Checking the request headers with DHC - Restlet Client also shows that no such value is present. Could someone help me with this?

Extra info: I used the iron-ajax Polymer element, specifying username and token in url and handle-as was set to "json". Source code is also available on my profile.

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

No branches or pull requests

1 participant