Google Cloud Storage - TTL and CORS settings

Documentation explaining how to set CORS and TTL for a storage bucket.

Create a JSON file with something like this:

[
  {
    "origin": ["..."],
    "method": ["GET", "PUT"],
    "responseHeader": ["Content-Type"],
    "maxAgeSeconds": 300
  }
]
gsutil cors set cors.json gs://johnmathews.is
gsutil cors get gs://johnmathews.is | jq