After migrating our attachment files from WordPress to S3 bucket, we also need to update the CORS configuration for our bucket. This post will show you how to do it easily.
First of all, you need to login to your AWS account and go to S3 dashboard.
Next, go to our S3 bucket and click the Permission tab you should see the sub tab, namely CORS configuration. On the below editor box is a place that we can add our configuration with following the XML format
x should be * for all website or your specific website (http://example.com)
Finally, clicking save and enjoy your bucket.