Proxying Third-Party JavaScript as First-Party JavaScript (and the Potential Effect on Analytics)

· CSS-Tricks · Nov. 2, 2021, 11:24 p.m.
Summary
First, check out how incredibly easy it is to write a Cloudflare Worker to proxy another URL: addEventListener("fetch", (event) ={ event.respondWith( fetch("https://css-tricks.com") ); }); It doesn’t have any error handling or anything, but hey, it works: Now imagine how … The post Proxying Third-Party JavaScript as First-Party JavaScript (and the Potential Effect on Analytics) appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter....
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →
BLOG POST FEATURED ON

Add this plugin to your blog