Unable to update AWS S3 CORS POLICY

前端 未结 3 2097
没有蜡笔的小新
没有蜡笔的小新 2021-02-19 10:18

I needed to change my AWS S3 bucket CORS policy to enable the upload of files for my ReactJS to AWS S3, but I keep getting this API response:

Expected params

3条回答
  •  礼貌的吻别
    2021-02-19 10:59

    We encountered the same error. We needed two fixes. (Not sure if this is helpful in your case):

    1. Pay attention to the type of quotes used: "" vs “”. Use the former
    2. Make sure you do not have a trailing comma on the second to last line, following the bracket.

提交回复
热议问题