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

XMLHttpRequest cannot load #497

Closed
karan opened this issue May 13, 2014 · 2 comments
Closed

XMLHttpRequest cannot load #497

karan opened this issue May 13, 2014 · 2 comments
Labels

Comments

@karan
Copy link

karan commented May 13, 2014

XMLHttpRequest cannot load https://api.twitter.com/1/statuses/oembed.json?id=462072621429825536&align=center. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8000' is therefore not allowed access.

Trying to make tweet-embed. But I get this error.

Here's my code:

<polymer-element name="tweet-embed">
  <template>
    <core-ajax url="https://api.twitter.com/1/statuses/oembed.json?id={{id}}&align=center" auto response="{{resp}}"></core-ajax>
    {{resp.html}}
  </template>
</polymer-element>
@ebidel
Copy link
Contributor

ebidel commented May 13, 2014

Is that endpoint CORS enabled? It looks like no: https://dev.twitter.com/discussions/11012

@karan
Copy link
Author

karan commented May 13, 2014

Weird. Seems like there is no CORS enabled end-point for fetching tweet.

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

No branches or pull requests

2 participants