cloudflare-image-resizing-worker icon indicating copy to clipboard operation
cloudflare-image-resizing-worker copied to clipboard

onerror=redirect relative URL

Open rjdusk opened this issue 8 months ago • 0 comments

Hi @Mecanik, firstly thank you so much for this worker code, I've been using it to great success on a WordPress website I manage.

However I've noticed a few line in my server error logs that look like this:

2023/11/01 00:16:43 [error] 48664#48664: *449359 open() "/www/xucobuce_886/public/resources/guides/mobile-self-checkout-benefits/onerror=redirect/wp-content/uploads/2021/03/Yuka-scanning-app-cheerios.png" failed (2: No such file or directory), client: 52.167.144.136, server: www.scandit.com, request: "GET /resources/guides/mobile-self-checkout-benefits/onerror=redirect/wp-content/uploads/2021/03/Yuka-scanning-app-cheerios.png HTTP/2.0", host: "www.scandit.com:64972"

Any idea what maybe causing these errors? It looks like the onerror redirect is a relative URL instead of an absolute URL. Probably some config I may have missed, but I can't see where. Thanks!

rjdusk avatar Nov 01 '23 01:11 rjdusk