Problem with settings CORS policies on R2

@rtopuz To do that, all you’d need is:

[
  {
    "AllowedOrigins": [
      "http://localhost:5173" // Change to your origin
    ],
    "AllowedMethods": [
      "GET"
    ]
  }
]

I’ve just verified that this CORS policy does work when fetching an object this way:

      fetch("https://pub-<uuid>.r2.dev/image.png")
        .then((img) => img.blob())
        .then((blob) => {
          console.log(blob);
        });

Screenshot 2023-04-13 at 14.12.33

The bucket UUID isn’t a secret, but I’m going to disallow public access on it now


@mtarnovan We definitely want to support as much of the S3 API as possible! I can’t give you an ETA for this though since this isn’t on our immediate roadmap yet. When we does go out, I’ll let you all know here.