commit | 3679f99471025ceb08e10c5304ecb2184bde4a89 | [log] [tgz] |
---|---|---|
author | Andrew Bonventre <andybons@google.com> | Tue Aug 11 17:31:11 2020 -0400 |
committer | Andrew Bonventre <andybons@google.com> | Tue Aug 11 17:50:04 2020 -0400 |
tree | e55f18250926c7df93d3b2e7df55c4a77b901354 | |
parent | 9d7bc092f574cf755ca79a53830d53c9ee87a28f [diff] |
[x/go.dev] all: update CSP header to include golang.org as a connect-src The site attempts to fetch the latest version of Go using a CORS request to golang.org/dl/?mode=json, but doing so is currently not permitted with the current CSP values. Update them to allow connection to golang.org. Also fixes retrieval logic to await the JSON response, since it returns a promise, and properly sorts the versions. Change-Id: If88bb3b12d097909e1f89c074b6726c12580470f X-GoDev-Commit: 6e3d3fb4e7b9fb9e9f84235ce4283a8b43990a58
This repository holds the Go Website server code and content.
The easiest way to install is to run go get -u golang.org/x/website
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/website
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/website:” in the subject line, so it is easy to find.