locafe
#1
Hi there,
I’ve been trying to setup a Cloudflare Worker to rewrite img src=“https://assets.ecommerce platform/uploads/images/product.jpg” to img src=“https://myecommerce.imgix.net/uploads/images/product.jpg” without success : (
Any ideal on how I can do that? Any tutorial?
Tks so much!!!
Here’s a similar worker:
locafe
#3
Tks so much Sdayman!
Just run a quick test on https://Cloudflareworkers.com but got a 403 error. Any idea on what I’m doing wrong?
locafe
#4
Seams that the Worker is changing the page url it self not the img address…
I use imgix, but only lower case urls and matching paths.
Add here the exact url client would vist and the imgix direct url.
locafe
#6
Hi Adaptive,
Here it goes:
Exact url client would visit: https://locafe.xtechcommerce.com/categoria-modelo/Estrutura-de-Produto
Imgix direct url:
Tks so much for your support!!!