Amazon S3 CORS headers only show during OPTIONS (preflight) and not during GET request

前端 未结 1 1159
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 11:51

I have an S3 bucket with the following CORS config.




        
1条回答
  •  再見小時候
    2021-02-04 12:20

    With your curl -iI option you will be doing a HEAD request and not a GET request. So you will not get the CORS headers. To simplify testing add HEAD to your CORS configuration and you'll get the expected results.

    0 讨论(0)
提交回复
热议问题