hackpad icon indicating copy to clipboard operation
hackpad copied to clipboard

Example "Hello from Wasm!" fails to build due to 403

Open puhitaku opened this issue 1 month ago • 1 comments

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

  1. Open hackpad.org with a private tab (for a cleaner environment)
  2. Add main.go to summon the Hello World
  3. 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.

puhitaku avatar Nov 12 '25 19:11 puhitaku