Skip to content

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

@puhitaku

Description

@puhitaku

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions