CSPViolationReportBody extension type

The CSPViolationReportBody interface contains the report data for a Content Security Policy (CSP) violation. CSP violations are thrown when the webpage attempts to load a resource that violates the CSP set by the HTTP header.

Note: this interface is similar, but not identical to, the JSON objects sent back to the report-uri or report-to policy directive of the header.

on
Implemented types

Properties

blockedURL String?
no setter
columnNumber int?
no setter
disposition SecurityPolicyViolationEventDisposition
no setter
documentURL String
no setter
effectiveDirective String
no setter
hashCode int
The hash code for this object.
no setterinherited
lineNumber int?
no setter
originalPolicy String
no setter
referrer String?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sample String?
no setter
sourceFile String?
no setter
statusCode int
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() JSObject
The toJSON() method of the ReportBody interface is a serializer, and returns a JSON representation of the ReportBody object.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited