CORS Issue with R2

Hi all, I came from this forum post - https://community.cloudflare.com/t/problem-with-settings-cors-policies-on-r2/432339/55?page=3 and I'm having the same issue that's been mentioned. Images are displaying perfectly fine on my site which is great but my lightbox setup uses fetch to grab the larger image on click giving me this error

I've added the request headers too if it helps, I'm not super well-versed when it comes to CORS and whatnot
Screenshot_2025-02-03_at_4.53.44_pm.png
Screenshot_2025-02-03_at_4.54.05_pm.png
Was this page helpful?