0

I need to make a CORS Policy for my S3 Bucket.

In the console, it says the policy has to be valid JSON. I copy and paste their examples and immediately it errors stating they're formatted improperly. This is basically what I'm trying:

[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "POST"
        ],
        "AllowedOrigins": [
            "https://localhost:3000",
            "https://mywebsite.com",
        ]
    }
]

Apparently something is wrong:

enter image description here

David
  • 7,028
  • 10
  • 48
  • 95

1 Answers1

1

The CORS policy is a standalone policy that needs to be specified in the origin resource sharing (CORS) for the bucket. You need to enter the policy that you have there.

Paolo
  • 21,270
  • 6
  • 38
  • 69