Cross-site scripting Protection (X-XSS-Protection header)
Last updated
Last updated
This header enables the Cross-site scripting (XSS) filter in your browser. It checks for the presence of the X-XSS-Protection-header.
This health check can be fixed by adding a header before the response is started.
Preferable you use a security library like .
If you take a NuGet dependency on , you can use third extension methods on IApplicationBuilder
.
If you don't like to have a dependency on third party libraries. You can add the following custom middleware to the request pipeline.