Hello World

Be Happy!

GCP storage CORS config


Changwoo.org file uploaded to GCP storage
and it's have CORS issues, if file upload on web browser client
we have to configure CORS


GCP : Google Cloud Platform
CORS : Cross Origin Resource Sharing
gsutil : GCP storage util

cors.json
[
  {
    "origin": ["https://www.changwoo.org", "http://localhost:3000"],
    "responseHeader": ["Content-Type", "Content-Md5"],
    "method": ["PUT", "GET", "HEAD", "DELETE"],
    "maxAgeSeconds": 3600
  }
]

Bash
Change gs://XXXXXXX
curl https://sdk.cloud.google.com | bash
exec -l $SHELL
gcloud init

# CORS confirm gsutil cors get gs://XXXXXXX # CORS setting gsutil cors set cors.json gs://XXXXXXX
#gcp (1) #gsutil (1) #cors (2)
List