Thanks for asking question! Just to confirm how are you updating globalHeaders? The globalHeaders section provides a set of HTTP headers applied to each response, unless overridden by a route header rule, otherwise the union of both the headers from the route and the global headers is returned.
See the example configuration file for usage examples.
Let us know if issue remains.