Set allow-origin bucket r2

Hello,
I have issue with R2 CORS. I configure R2-CORS.

[
  {
    "AllowedOrigins": [
      "http://localhost:3000"
    ],
    "AllowedMethods": [
      "GET"
    ],
    "AllowedHeaders": [
      "Content-Type"
    ]
  }
]

I would only access bucket from localhost but I can access bucket from anywhere.

2 Likes

Could you please share the response (including headers) that R2 is returning on a CORS request?

Screenshot from 2023-03-23 15-56-07

i public bucket on custom domain and add Transform Rules and recieve this response

Screenshot from 2023-03-23 16-00-49
Respone when not add Transfrom Rules

I have the same problem.