awslabs / aws-js-s3-explorer

AWS JavaScript S3 Explorer is a JavaScript application that uses AWS's JavaScript SDK and S3 APIs to make the contents of an S3 bucket easy to browse via a web browser.
Apache License 2.0
825 stars 276 forks source link

cors policy in README doesn't work #101

Closed gurugeek closed 3 years ago

gurugeek commented 3 years ago

I just copied from the README the cors policy and it is not accepted. It appears to be an invalid JSON (also confirmed by the JSON validator).

Thanks for your help.

gurugeek commented 3 years ago

figure it out, my mistake

john-aws commented 3 years ago

The new CORS policy format is JSON and begins and ends with square (array) brackets, which is valid JSON. Did you miss the closing square bracket?

Also, where are you entering this policy? That doesn't look like the CORS policy input field. Can you clarify what S3 console path you took to get there? Thanks.

john-aws commented 3 years ago

Ah, our posts crossed. OK, glad you've resolved the issue.