Proxying traffic to Report URI with Cloudflare Workers
Jul 17, 2018Scott Helme

Summary
This post introduces a new use case for Cloudflare Workers: acting as a proxy to forward traffic to an external service (Report URI). It provides a concrete example of a Worker script that intercepts incoming POST requests, modifies headers (specifically User-Agent), and forwards the request body and modified headers to a specified origin. It also details how to configure the Worker to downsample report volume and hide the User-Agent string, showcasing the flexibility of Workers for custom request processing and integration.