Class ContentSecurityPolicyViolationReport
Represents Content-Security-Policy and Content-Security-Policy-Report-Only violation report.
Inheritance
System.Object
ContentSecurityPolicyViolationReport
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lib.AspNetCore.Security.Http.Reports
Assembly: Lib.AspNetCore.Security.dll
Syntax
public class ContentSecurityPolicyViolationReport
Properties
BlockedUri
Gets the resource which violated the policy.
Declaration
public string BlockedUri { get; }
Property Value
Type | Description |
---|---|
System.String |
ColumnNumber
Gets the violation’s column number.
Declaration
public int? ColumnNumber { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Disposition
Gets the violated policy disposition.
Declaration
public ContentSecurityPolicyDisposition Disposition { get; }
Property Value
Type | Description |
---|---|
ContentSecurityPolicyDisposition |
DocumentUri
Gets the violation’s URL.
Declaration
public string DocumentUri { get; }
Property Value
Type | Description |
---|---|
System.String |
EffectiveDirective
Gets the directive whose enforcement caused the violation.
Declaration
public string EffectiveDirective { get; }
Property Value
Type | Description |
---|---|
System.String |
LineNumber
Gets the violation’s line number.
Declaration
public int? LineNumber { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Policy
Gets the violated policy.
Declaration
public string Policy { get; }
Property Value
Type | Description |
---|---|
System.String |
Referrer
Gets the referrer of the resource whose policy was violated.
Declaration
public string Referrer { get; }
Property Value
Type | Description |
---|---|
System.String |
Sample
Gets the sample.
Declaration
public string Sample { get; }
Property Value
Type | Description |
---|---|
System.String |
SourceFile
Gets the violation’s source file URL.
Declaration
public string SourceFile { get; }
Property Value
Type | Description |
---|---|
System.String |
StatusCode
Gets the HTTP status code of the resource for which the global object was instantiated.
Declaration
public int StatusCode { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
ViolatedDirective
Gets the directive whose enforcement caused the violation.
Declaration
public string ViolatedDirective { get; }
Property Value
Type | Description |
---|---|
System.String |