COOPViolationReportBody: sourceFile property

The sourceFile read-only property of the COOPViolationReportBody interface indicates the URL of the source file that violated the Cross-Origin-Opener-Policy (COEP).

This property is used with COOPViolationReportBody.lineNumber and COOPViolationReportBody.columnNumber to indicate the location that triggered the violation.

Value

A string containing the URL of the file that triggered the violation.

Examples

Specifications

No specification found

No specification data found for api.COOPViolationReportBody.sourceFile.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Browser compatibility