CORS error when calling oembed 1.1


#1

I am sending a GET request to https://api.twitter.com/1.1/statuses/oembed.json from my javascript and it responds with an error below. why?

XMLHttpRequest cannot load https://api.twitter.com/1.1/statuses/oembed.json?id=247927994763579392. Origin http://localhost:4567 is not allowed by Access-Control-Allow-Origin.


#2

We don’t support CORS on the API unfortunately. statuses/oembed also requires OAuth in 1.1, which I could see being problematic with how you might be using it…

For the time being, you might find yourself better served by 1.0’s OEmbed endpoint using JSON-P.


#3

I have had the same issue.
i solved it by implementing this on my back-end that calls this api and send me back the response got from this api.


#4