oembed icon indicating copy to clipboard operation
oembed copied to clipboard

Suggest setting the CORS header (Access-Control-Allow-Origin)

Open ChristophKaser opened this issue 7 years ago • 1 comments

It might be helpful to mention the Access-Control-Allow-Origin-Header in the specification under 2.3, maybe like this:

The response should also set the Access-Control-Allow-Origin to * to allow consuming the API from javascript clients running in the browser.

At the moment, some providers have set that header, but a large number of them has not. Without the header, the response can only be consumed by a server client or standalone script, but not in the browser.

ChristophKaser avatar Aug 09 '18 06:08 ChristophKaser

This would be very "welcoming" for public content, but might impose a security issue for private content, and also lead to other concerns like making this CORS support detectable from the client.

tomerle avatar Sep 21 '20 12:09 tomerle