A template for customizing HTTP response headers using Cloudflare Workers.
index.js is the content of the Workers script.
To generate using wrangler
wrangler generate projectname https://github.com/cloudflare/custom-headers-example
Further documentation for Wrangler can be found here.
Fill in your account_id, zone_id, and route in wrangler.toml.
When your wrangler.toml is configured, you can publish your Workers function using wrangler publish:
$ wrangler publish