If you are building a platform on top of Fly and have your own load balancer behind fly-proxy
that already adds response headers like Via
, or you just want to keep HTTP responses clean of Fly injected headers, there is a new configuration option for you to remove such headers from HTTP responses.
You can set it like this:
[services.ports.http_options.response]
pristine = true
or
[http_service.http_options.response]
pristine = true
The option will prevent the proxy from adding or modifying the following response headers: Server
, Via
, Fly-Request-Id
and Fly-Cache-Status
.
If you send flyio-debug: doit
request header, the response will contain debug information even if this option is set.