I’m currently trying to serve a different webpage than the one the user entered into the adress bar with a Cloudflare worker like this. It works like a charm for plain HTML sites, but the page i want to load is actually a react app. This is where i’m stuck, how can i load a react app with a Cloudflare worker?
Yes, proxying is common use case (just make sure you’re legally allowed to do so!).
When you request the HTML, you’re not also proxying the scripts (react) that the HTML loads. You’ll need to process the HTML in the worker and replace the URLs with your worker URL so that they are also proxied.
This is a very basic thing to do, that’s why no one’s replying.