Would it be possible to add an Access-Control-Allow-Origin: * header to the “Download code” API endpoint, so the package can be used as a dependency in a CodeSandbox project (where dependencies are fetched by the browser)?
Hi @aeaton, that’s a great idea!
I remember seeing the (Add dependency via tar.gz upload or URL) issue solved on CodeSandbox. Still, I did not succeed in making examples using Observablehq notebooks due to the same CORS problem.
There is an example of the Observable runtime being implemented as an interpreter that can include dependencies via the browser here: Storyboard (githack.com)