In host.json file of azure function added custom headers. It is masking server info in response headers of xhr initiated but not on "other" initiated request respo