Global response header removal

The instructions for removing response headers seem to indicate it has to be configured on a per-path basis. Is there any way to do it on a global level (i.e. per api) instead?

Hi

I know this is possible for request headers, i will check if response can also be done globally per API

It looks like "path": "/" matches all requests, then I would only have to specify for each method.

I think if you do an endpoint with a regex wildcard then it will apply to all paths but that is the same as your implementation.

It would be nice if there were a way to specify multiple methods at a time, though. "method" only takes a string, not an array, and doesn’t seem to support wildcard

If we can change it without breaking back compatibility then I can’t see an immediate reason not to do that. I’ll have a discussion with the team.

2 Likes