Not include Cloudflare generated headers (CF-Ray etc) in response


#1

Hi Everyone,

This is a slightly strange request, I want to have control over exactly what headers are returned via a request that uses a webworker. I have script performing everything I want but when it’s returned Cloudflare is injecting it’s own headers that I want to remove such as CF-Ray.

Is this possible?

Thanks


#2

Maybe removing CF headers could become a feature, however I suspect it would require enterprise or a custom solution. See the following article, most of the headers are necessary for Cloudflare to function and ensure it can track bad behaviour and reliably assign IP reputation.