Rewrite not working with CloudFlare Workers

Hi,

I wanted to mask the URL with CloudFlare workers someone from CF supported suggested me this https://developers.cloudflare.com/workers/examples/rewrite-links

But doesn’t seem working for me with workers.

Do you mean: you have something e.g. images in example.org, but you want to serve it via your domain e.g. example.com?

If yes, I think you need to refer to this doc instead: