Molto brutta modifica qui ma potresti risolverlo in nginx aggiungendo un proxy_hide_header e seguito dal tuo add_header
proxy_hide_header
add_header