Ok, I solved this by creating a new bucket updating the CORS configuration, creating a new access_key_ID and access_secret_access_key and updating the heroku environment variables (I also selected the bucket to be in the same region as my heroku application, but not sure, however, this is was a decision). The CORS configuration was used:
<?xml version="1.0" encoding="UTF-8"?> <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <AllowedMethod>POST</AllowedMethod> <AllowedMethod>PUT</AllowedMethod> <AllowedHeader>*</AllowedHeader> </CORSRule> </CORSConfiguration>
source share