• Oxford: +44 (0)1865 877830 
  • Manchester: +44 (0)161 713 0176 
  • Edinburgh: +44 (0)131 541 0118 
  • New York: +1 646-781-7580 
  • Bucharest: +40 316 301 707 
  • Tokyo: +81 (3) 4588 8181 

Ben (not verified) May 13, 2014

Reply
The native module does not appear to be able to remove X-Powered-By , this is added as a custom header by default in the apphost config. It should be added by the IIS protocolsupportModule (native) ... The order of the execution and the event used in your code should mean the header is visible by the time your code runs. But this does not appear to be the case. I tried this on a couple of W2K8R2 / IIS7+ servers. One way around this would be to modify the wix installer to remove the default X-powered-by header as an additional edit to the apphost config.