I am trying to make an XHR request to facebook's oembed but hitting a CORS error. Anybody knows if this is because Facebook doesn't allow CORS requests to the oembed endpoint? If that's the case why would it not be allowed? Is the endpoint supposed to be used outside the browser?
XMLHttpRequest cannot load https://apps.facebook.com/plugins/
post/oembed.json/?url=https://www.facebook.com/notes/mark-zuckerberg/
a-letter-to-our-daughter/10153375081581634.
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:8000' is therefore not allowed access.
I am also hitting the same thing with other providers: YouTube, Twitter, Vine, Instagram. Some seems to allow it: Vimeo and Soundcloud.