CORS error when calling oembed 1.1


I am sending a GET request to from my javascript and it responds with an error below. why?

XMLHttpRequest cannot load Origin http://localhost:4567 is not allowed by Access-Control-Allow-Origin.


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.


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.