
7/17/2018 · Scott Helme
What this post added
This post introduces a new use case for Cloudflare Workers: acting as a proxy to forward CSP reports to Report URI. It provides a simple JavaScript worker script that intercepts incoming reports on a custom subdomain and forwards them to a specified Report URI address. The worker allows for shielding client IPs from Report URI, masking User Agent strings, downsampling report volume, and other advanced processing of the report payload. This enables users to maintain the simplicity of Report URI while meeting custom requirements.