79250521

Date: 2024-12-04 09:28:10
Score: 0.5
Natty:
Report link

Headers are added in later versions of .NET Core 8 and 9 only for the Apps deployed in Windows.

Linux App:

enter image description here

Also referred this Doc and tried to remove the header using the Middleware class.

enter image description here

Thanks @Thomas Ardal for the explanation.

ASP.NET Core will return the X-Powered-By header. This happens when you host your website on IIS. you simply cannot remove the header in middleware, since this is out of hands for ASP.NET Core. web.config to the rescue:

Output with Web.config:

enter image description here

Also refer this blog for more details.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): this blog
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @for
  • High reputation (-1):
Posted by: Harshitha