Interface ISecurityHeadersReportingService
Contract for service which provides support for security headers violations reporting.
Namespace: Lib.AspNetCore.Security
Assembly: Lib.AspNetCore.Security.dll
Syntax
public interface ISecurityHeadersReportingService
Methods
OnContentSecurityPolicyViolationAsync(ContentSecurityPolicyViolationReport)
This method will be called uppon receiving Content-Security-Policy and Content-Security-Policy-Report-Only violation report.
Declaration
Task OnContentSecurityPolicyViolationAsync(ContentSecurityPolicyViolationReport report)
Parameters
Type | Name | Description |
---|---|---|
ContentSecurityPolicyViolationReport | report | The Content-Security-Policy or Content-Security-Policy-Report-Only violation report. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The task object representing the asynchronous operation |
OnExpectCtViolationAsync(ExpectCtViolationReport)
This method will be called uppon receiving Expect-CT violation report.
Declaration
Task OnExpectCtViolationAsync(ExpectCtViolationReport report)
Parameters
Type | Name | Description |
---|---|---|
ExpectCtViolationReport | report | The Expect-CT violation report. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The task object representing the asynchronous operation |