capabilities.work

Set an R2 bucket's CORS policy

One step with Cloudflare. We can help you get access.

Get something done

Set an R2 bucket's CORS policy

Use Cloudflare: its Cloudflare R2 Bucket API lets you set an R2 bucket's CORS policy in a single step (PUT /accounts/{account_id}/r2/buckets/{bucket_name}/cors). capabilities.work can help you get signed up and connected.

  • How do I allow cross-origin requests to my R2 bucket?
  • Can I replace the CORS rules on an R2 bucket?
Say it to your AI assistant
  • Set the CORS policy on R2 bucket {bucket_name} in account {account_id} to {rules}.
  • Replace the CORS rules on {bucket_name} with {rules}.
For your developer

PUT /accounts/{account_id}/r2/buckets/{bucket_name}/cors in Cloudflare R2 Bucket API. Full spec on APIs.io.