hackpad
hackpad copied to clipboard
Example "Hello from Wasm!" fails to build due to 403
What happened?
When I tried building the example "Hello from Wasm" program, it failed with a 403 with CORS error while fetching johnstarich/go/datasize from the Go Module Proxy by Google.
How to reproduce
- Open hackpad.org with a private tab (for a cleaner environment)
- Add
main.goto summon the Hello World - Build
Output of the Build tab
$ go version
go version go1.20.3 js/wasm
✔ (0.16s)
$ go mod init playground
go: creating new go.mod: module playground
go: to add module requirements and sums:
go mod tidy
✔ (0.12s)
$ go mod tidy
go: finding module for package github.com/johnstarich/go/datasize
playground imports
github.com/johnstarich/go/datasize: module github.com/johnstarich/go/datasize: Get "https://proxy.golang.org/github.com/johnstarich/go/datasize/@v/list": net/http: fetch() failed: Failed to fetch
exit status 1
Output of the inspector
Access to fetch at 'https://proxy.golang.org/github.com/johnstarich/@v/list' from origin 'https://hackpad.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.