Fly Response Headers

Hi,

Update: Ah, it seems Fly have added the ability to do this within your fly.toml. Give this a try:

Else maybe use TCP-passthrough:

To do that you’d simply comment out the handler in the fly.toml, and so handle it in-app e.g

[[services.ports]]
#handlers = ["tls", "http"]
port = "443"

I’m thinking that if you handle it in-app (e.g with Node or Go), it would avoid using Fly’s handler and so it may not set those particular headers. I say may because it still does pass through a proxy.

Else put another proxy in front of Fly (like Cloudflare) and you could then edit headers there. But that’s a bit icky.