This has nothing to do with your backend or frontend, you'll have to add CORS policy in your S3 bucket
Please follow below steps to enable CORS on your S3 bucket
Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/.
In the Bucket…
CORS issue for Amazon-s3 resolved
Reference : https://docs.aws.amazon.com/AmazonS3/latest/user-guide/add-cors-configuration.html