Yozamu
CDCloudflare Developers
•Created by Yozamu on 5/24/2024 in #general-help
Questions about CORS and R2 usage
Hello,
I've started using CloudFlare with R2 today. I've added my site to be able to add it as custom domain for my bucket. However there are two points I'm worried about:
- I don't want my bucket to be accessed from anywhere and would prefer to allow only some origins to access it. I've tried to set a CORS policy, but it doesn't seem to get applied. Any idea why ?
- I'm also worried about the analytics part, both global and R2-related. It seems I've already had 670 requests overall, and 169 + 209 operations of class A and B respectively. Which seems a bit weird to me since I'm the only one accessing the data right now, and there are only a few dozen files uploaded... Hence I'm not sure how I could've reached that numbers
Any hint is appreciated
9 replies