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?
Was this page helpful?