
First, check out how incredibly easy it is to write a Cloudflare Worker to proxy another URL: It doesn’t have any error handling or anything, but hey, it works:
Proxying Third-Party JavaScript as First-Party JavaScript (and the Potential Effect on Analytics)