Add CORS support to the oEmbed endpoint

Add CORS support to the oEmbed endpoint
0

Upvotes

Upvote

 Jun 29 2018
1 Comments (1 New)
New

Right now it's impossible to use the oEmbed endpoint at https://web.microsoftstream.com/oembed from JS running in the browser on another domain as the XHR request is blocked due to cross domain security restrictions. This makes it pretty useless for lots of common use cases.

 

All you need to do is send the following header in the response:

 

Access-Control-Allow-Origin: *
Comments
Community Manager
Status changed to: New