Skip to content

Instantly share code, notes, and snippets.

@jeremydw
Last active March 29, 2017 16:44
Show Gist options
  • Save jeremydw/7c0921528fd8aea81cfd143fec5ac9b5 to your computer and use it in GitHub Desktop.
Save jeremydw/7c0921528fd8aea81cfd143fec5ac9b5 to your computer and use it in GitHub Desktop.
[
{
"origin": [
"*",
"http://localhost:8080",
"http://localhost:9000",
"https://events.example.com",
"https://example-dot-example.appspot.com"
],
"responseHeader": ["Content-Type", "Origin"],
"method": ["OPTIONS", "GET", "HEAD", "DELETE"],
"maxAgeSeconds": 3600
}
]
bucket ?= bucket
update_cors:
gsutil cors set gcs-cors.json gs://$(bucket)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment