golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.51k stars 17.6k forks source link

proxy.golang.org: let storage.googleapis.com/proxy-golang-org-prod return responses with 'Access-Control-Allow-Origin: *' #45248

Open hajimehoshi opened 3 years ago

hajimehoshi commented 3 years ago

Apparently https://proxy.golang.org/ now returns responses with Access-Control-Allow-Origin: *, which is awesome. However, the storage server (https://storage.googleapis.com/proxy-golang-org-prod/...) for zip files does not.

I'd be happy if the storage server could return responses with Access-Control-Allow-Origin: *, so that we could create our own playground where Go tool chain works on browsers completely. Actually, I have succeeded to create a Go toolchain compiled in Wasm (https://github.com/hajimehoshi/asobiba, https://storage.googleapis.com/soko-dot-hajimehoshi-dot-org/asobiba/index.html) and now I'm now using a third party's GOPROXY instead.

heschi commented 3 years ago

@katiehockman

katiehockman commented 3 years ago

@hajimehoshi we'll take a look at this. Thanks for filing the issue.

hajimehoshi commented 3 years ago

Friendly ping