Image transformations via workers on same origin
I have a cloudflare pages project deployed with a custom domain on
sub.domain.tld, since pages functions don't support image transformations I've deployed a standalone worker under the route sub.domain.tld/media*, transformations are working as expected for images from different origins but when requesting a publicly available image from the pages project origin (e.g. sub.domain.tld/image.png), the subrequest with the transformation options fails with error 9421: Too many redirects, what am I doing wrong here?