Cloudflare R2: Navigating Setup and Handling Configuration Errors

I tried everything but I always get this error:

Aws::S3::Errors::BadRequest

I wonder what I’m missing?

When I upload an image from the R2 panel, this image opens with the special cdn url. The problem is that the image cannot be loaded on the site. I created cors and opened all methods.

[
  {
    "AllowedOrigins": [
      "https://SITENAME.com"
    ],
    "AllowedMethods": [
      "GET",
      "POST",
      "HEAD",
      "DELETE",
      "PUT"
    ]
  }
]

any ideas?

1 Like