cli icon indicating copy to clipboard operation
cli copied to clipboard

http server --allow-origin argument to set cors headers

Open substack opened this issue 4 years ago • 0 comments

This patch adds CORS headers when --allow-origin is given to the hyp drive http command. The headers are the same as ipfs uses which have probably been tested against many different scenarios by now.

With this patch, I can use fetch() in a web app to load proxied content from a hyper:// archive.

substack avatar Oct 21 '21 20:10 substack