Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > dd7204292d310452063d09b5de9c13b7 > files > 1590

aws-cli-docs-1.16.163-1.mga7.noarch.rpm

The following command retrieves the Cross-Origin Resource Sharing configuration for a bucket named ``my-bucket``::

  aws s3api get-bucket-cors --bucket my-bucket

Output::

  {
      "CORSRules": [
          {
              "AllowedHeaders": [
                  "*"
              ],
              "ExposeHeaders": [
                  "x-amz-server-side-encryption"
              ],
              "AllowedMethods": [
                  "PUT",
                  "POST",
                  "DELETE"
              ],
              "MaxAgeSeconds": 3000,
              "AllowedOrigins": [
                  "http://www.example.com"
              ]
          },
          {
              "AllowedHeaders": [
                  "Authorization"
              ],
              "MaxAgeSeconds": 3000,
              "AllowedMethods": [
                  "GET"
              ],
              "AllowedOrigins": [
                  "*"
              ]
          }
      ]
  }