commit | f75980871e691ebe3a13cba688254819b4a95cf7 | [log] [tgz] |
---|---|---|
author | Andrew Bonventre <andybons@golang.org> | Mon Jul 09 13:59:48 2018 -0400 |
committer | Andrew Bonventre <andybons@golang.org> | Mon Jul 09 18:37:30 2018 +0000 |
tree | cbb24795c613506f232fc0c354806976b439d6ee | |
parent | a7e8e783bec503a4489d00a68d6603941455d8c0 [diff] |
playground: allow CORS requests on /compile and /vet endpoints This is needed by the new blog frontend (and would be helpful for others who wish to embed runnable playground snippets using only JS). Change-Id: I8e1dcb4022ec15222e8ad3114b92e85d896f641e Reviewed-on: https://go-review.googlesource.com/122618 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This subrepository holds the source for the Go playground: https://play.golang.org/
# build the image docker build -t playground .
docker run --name=play --rm -d -p 8080:8080 playground # run some Go code cat /path/to/code.go | go run client.go | curl -s --upload-file - localhost:8080/compile
gcloud --project=golang-org --account=person@example.com app deploy app.yaml
To submit changes to this repository, see https://golang.org/doc/contribute.html.