this is just a beginner level question looking for some advice, which the following may misuse some key terms as well because of lacking knowledge, but hopefully can deliver the key message to all of you:
my company is hosting a website in AWS, everything works fine except it cannot be loaded in China because of the well known Chinese Great Firewall that will block all unregistered/unlicensed websites outside of China; the best solution is perhaps to host a server in China and get an ICP license to be approved by the Chinese government, but that will take time and many other considerations. So we are now looking for some alternatives to let our customers from China able to read content from our site.
use a Cloudflare service worker to fetch HTTP resources from a given webpage first and then send the HTTP content to users by the Service Worker (since Cloudflare is accessible in China)
Let Cloudflare’s registered Service Worker URL be: sample.workers.dev?abc=123 (which is the url that my user will be hitting)
Target website content to serve: http://google.com/?abc=123
When user tries to access the service worker url (sample.workers.dev), the service worker should try to handle this request by forwarding the request to google.com and stream the HTTP response back to the user
This will work for my company’s clients because we will usually generate a url and send over to the user by email or some other means, so we can send them a third party url that is accessible in China while actually loading content from our original website.
I tried all examples given by Cloudflare already: https://developers.cloudflare.com/workers/templates/ But so far no luck to archive what I want exactly.