Generate signed URL for R2 from Cloudflare worker
Hello everyone,
I am trying to replicate the result from this guide: https://developers.cloudflare.com/r2/data-access/s3-api/presigned-urls/
However, with the exact same code, the signedUrl variable return empty object({}).
If anyone have any insight would be much appreciated!
According to my understanding and written in the docs, I don't have to pass any accessKeyId or secretAccessKey.
However, the s3 url that I got my cloudflare dashboard is : https://.<ACCOUNT ID>.r2.cloudflarestorage.com/<DROPBOX BUCKET>, which is different from the docs.
I am trying to replicate the result from this guide: https://developers.cloudflare.com/r2/data-access/s3-api/presigned-urls/
However, with the exact same code, the signedUrl variable return empty object({}).
If anyone have any insight would be much appreciated!
According to my understanding and written in the docs, I don't have to pass any accessKeyId or secretAccessKey.
However, the s3 url that I got my cloudflare dashboard is : https://.<ACCOUNT ID>.r2.cloudflarestorage.com/<DROPBOX BUCKET>, which is different from the docs.

Presigned URLs are an S3 concept for sharing direct access to your bucket without revealing your token secret. A presigned URL authorizes anyone with the URL to …
