From d48db40c7ff18bfb9a66a15f320df7f2eb7310a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Mon, 23 Apr 2018 11:18:59 +0200 Subject: [PATCH] docs: Mention gsutil. --- website/src/docs/aws-s3.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/src/docs/aws-s3.md b/website/src/docs/aws-s3.md index 7ec86ec6b..bb059e608 100644 --- a/website/src/docs/aws-s3.md +++ b/website/src/docs/aws-s3.md @@ -206,7 +206,13 @@ The JSON format consists of an array of CORS configuration objects. An example u Most AWS configurations should be fairly simple to port to this format. -To enable this configuration, do: +If you have the [gsutil](https://cloud.google.com/storage/docs/gsutil) command-line tool, you can apply this configuration using the [gsutil cors](https://cloud.google.com/storage/docs/configuring-cors#configure-cors-bucket) command. + +```bash +gsutil cors set THAT-FILE.json gs://BUCKET-NAME +``` + +Otherwise, you can manually apply it through the OAuth playground: 1. Get a temporary API token from the [Google OAuth2.0 playground](https://developers.google.com/oauthplayground/) 1. Select the "Cloud Storage JSON API v1" ยป "devstorage.full_control" scope