Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Accepted Answer
@krksgbr what a coincidence, I was just about to post the solution to my own question. It turned out not to be a CORS issue at all (sorry about that DO), but related to the way the file was sent through Javascript. Apparently you have to wrap your file in a Blob object and not send it as a raw file (e.g. xhr.send(upload_file)) or through the FormData interface.
I managed to upload a file like this:
var blob = new Blob([upload_file], {type: f.upload_file}); var xhr = new XMLHttpRequest(); xhr.open(‘PUT’, v2_presigned_url); xhr.send(blob);
@al3x5 did you ever manage to find a solution? I am experiencing the same exact problem. thanks!
It is simple to solve! Just use ‘s3cmd’ command line tool:
s3cmd setcors file-with-bucket-cors.xml s3://BUCKETNAME
It is one shot config, after this, all will work perfectly!
Good luck!