Background
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.
Problem
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!