skip to Main Content

I am running into a error "ETagMissing: No access to ETag property on response. Check CORS configuration to expose ETag header." when running a multipart upload to AWS. I searched the whole net and cant find a way to add this Etag to my bucket CORS policy. I don’t know the properties of it and theres no documnetation.

My current CORS policy:

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

]

2

Answers


  1. Check CORS configuration to expose ETag header.

    The error message is telling you exactly what to do. Your CORS policy needs to add ETag in the ExposeHeaders array.

    You currently have an empty ExposeHeaders array so all headers are being blocked by CORS.

    Login or Signup to reply.
  2. Simply add ETag in the ExposeHeaders array on your CORS configuration.

    • Click on your bucket
    • Click on Authorization tab, move down to CORS

    Your CORS config should looks like :

    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "GET",
            "PUT",
            "POST"
        ],
        "AllowedOrigins": [
            "your_origin_url"
        ],
        "ExposeHeaders": [
            "ETag" // The line to add
        ]
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search