I’m trying R2 storage.
So I have some questions.
I’m trying to upload a file from a browser to R2 using the AWS JavaScript SDK.
However, the upload fails because there is no CORS header.
Is there a way to add CORS with R2 storage?
FWIW I’m currently evaluating R2 with a standard app (non-worker-based) and CORS is the main blocker here (can’t use direct uploads from the browser this way).
Public buckets, custom domains on buckets, presigned URLs & a host of other things are on the roadmap but there’s no timeframe that has been committed to.
Workers are the stop-gap for the majority of these things but won’t be required when those features are natively built into R2.