Trouble fetching data from R2 Storage
Just like the title suggests I am having trouble fetching an image from my R2 bucket. This problem only happens when I use the custom domain link attached with the bucket. The pub-link works fine. The error I get is '402-Forbidden'. My CORS policy is set the right way.
What else can be the issue?
1 Reply
same for me. i can access the images directly via the custom domain link, but when i try to show them on my website it complains about the CORS policy not having allowed origins header even though it does have it in the R2 settings and allows all origins... how to fix this?
this is how i solved it