[Fixed]-In S3 Bucket CORS Configrations not allowing xml and asking for json instead

40👍

In the new S3 console, the CORS configuration must be JSON. Read more here.

In your case, the JSON CORS configuration can be written as follow:

[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "POST",
            "GET",
            "PUT"
        ],
        "AllowedOrigins": [
            "*"
        ]
    }
]

Leave a comment