How to fix CORS erros when accessing s3 images through Cloudflare /cdn-cgi/image?

I have a bucket with CORS configuration allowing only my domain as an origin.
I am trying to use Cloudflare image resizing /cdn-cgi/image proxy but I get CORS error when accessing something like:

https://www.example.com/cdn-cgi/image/https://my-bucket.s3-eu-central-1.amazonaws.com/images/myimage.jpg

It works when I allow all origins on my bucket but I don’t want to do that.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.