Class XssProtectionCheck
Health check for the recommended production setup regarding the X-XSS-Protection header.
Namespace: Umbraco.Cms.Core.HealthChecks.Checks.Security
Assembly: Umbraco.Core.dll
Syntax
public class XssProtectionCheck : BaseHttpHeaderCheck, IDiscoverable
Constructors
View SourceXssProtectionCheck(IHostingEnvironment, ILocalizedTextService)
Initializes a new instance of the XssProtectionCheck class.
Declaration
public XssProtectionCheck(IHostingEnvironment hostingEnvironment, ILocalizedTextService textService)
Parameters
Type | Name | Description |
---|---|---|
IHostingEnvironment | hostingEnvironment | |
ILocalizedTextService | textService |
Remarks
This check should not find the header in newer browsers as this can cause security vulnerabilities https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
Properties
View SourceReadMoreLink
Gets a link to an external read more page.
Declaration
protected override string ReadMoreLink { get; }
Property Value
Type | Description |
---|---|
System.String |