SecurityPolicyViolationEvent

package js.html

extends Event

Available on js

The SecurityPolicyViolationEvent interface inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated.

Documentation SecurityPolicyViolationEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Constructor

new(type:String, ?eventInitDict:Null<SecurityPolicyViolationEventInit>)

Throws:

null

DOMError

Variables

read onlyblockedURI:String

A USVString representing the URI of the resource that was blocked because it violates a policy.

read onlycolumnNumber:Int

The column number in the document or worker at which the violation occurred.

read onlydisposition:SecurityPolicyViolationEventDisposition

Indicates how the violated policy is configured to be treated by the user agent. This will be "enforce" or "report".

read onlydocumentURI:String

A USVString representing the URI of the document or worker in which the violation was found.

read onlyeffectiveDirective:String

A DOMString representing the directive whose enforcement uncovered the violation.

read onlylineNumber:Int

The line number in the document or worker at which the violation occurred.

read onlyoriginalPolicy:String

A DOMString containing the policy whose enforcement uncovered the violation.

read onlyreferrer:String

A USVString representing the referrer of the resources whose policy was violated. This will be a URL or null.

read onlysample:String

A DOMString representing a sample of the resource that caused the violation, usually the first 40 characters. This will only be populated if the resource is an inline script, event handler, or style — external resources causing a violation will not generate a sample.

read onlysourceFile:String

A USVString representing the URI of the document or worker in which the violation was found.

read onlystatusCode:Int

A number representing the HTTP status code of the document or worker in which the violation occurred.

read onlyviolatedDirective:String

A DOMString representing the directive whose enforcement uncovered the violation.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/SecurityPolicyViolationEvent.html