# Cloudflare R2：导航设置与处理配置错误

**URL:** https://meta.discourse.org/t/cloudflare-r2-navigating-setup-and-handling-configuration-errors/305617
**Category:** Self-hosting
**Tags:** s3
**Created:** [2024年四月21日 21:13 UTC](https://meta.discourse.org/t/cloudflare-r2-navigating-setup-and-handling-configuration-errors/305617 "2024-04-21T21:13:01Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![kuaza](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuaza/32/264151_2.png) [@kuaza](https://meta.discourse.org/u/kuaza)
#### Post date: [2024年四月26日 16:53 UTC](https://meta.discourse.org/t/cloudflare-r2-navigating-setup-and-handling-configuration-errors/305617/6 "2024-04-26T16:53:38Z")

</div>

我尝试了一切，但总是收到此错误：

`Aws::S3::Errors::BadRequest`

我想知道我错过了什么？

当我在 R2 面板中上传图片时，该图片会通过特殊的 CDN URL 打开。问题是图片无法在网站上加载。我创建了 CORS 并打开了所有方法。

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

```

有什么想法吗？

---

_[View the full topic](https://meta.discourse.org/t/cloudflare-r2-navigating-setup-and-handling-configuration-errors/305617)._
