Using Cloudflare Worker as a reverse proxy

My goal is to embed webpages inside an iFrame, and I’ve been using the CORSFlare repo to enable that for sites that prohibit it because of CORS.

I rewrote relative path for the first page render since I know the host URL, but I don’t know how to do that for paths that are injected in the webpage after page load.
For example, /path is injected after page load, but when it reaches the Cloudflare worker, I don’t know who the host is.

Would appreciate any help on this!

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