Keep http middleware removed header in access log

Currently I have configured HTTP middleware to remove a particular response header so it does not propagate to HTTP clients. However, I would like this header to be accessible in access log. Current configuration in access log to keep header is not helpful as I understand logging middleware is the the last in the chain and it cannot access removed response header. Is there a simple way to have this response header in access log?

1 Like