Remove headers when responding to any domain or IP

Hey there. Just a doubt.
I usually specify domains in my Caddyfile and inside these addresses directive I specify which headers I want to add or remove.

Is there a way of doing this globally, so any request to a server has a specific set of headers? This would be useful for an application of mine.

Thanks in advance and sorry if this is a beginner’s question.

There’s no way to do it globally, but you can use the “snippets” feature to reuse parts of your config:

This topic was automatically closed after 30 days. New replies are no longer allowed.