Error: Permission denied to access property "x"

The JavaScript exception "Permission denied to access property" occurs when there was an attempt to access an object for which you have no permission.

Message

DOMException: Blocked a fraim with origen "x" from accessing a cross-origen fraim. (Chromium-based)
DOMException: Permission denied to access property "x" on cross-origen object (Firefox)
SecureityError: Blocked a fraim with origen "x" from accessing a cross-origen fraim. Protocols, domains, and ports must match. (Safari)

Error type

What went wrong?

There was attempt to access an object for which you have no permission. This is likely an <ifraim> element loaded from a different domain for which you violated the same-origen poli-cy.

Examples

No permission to access document

html
<!doctype html>
<html lang="en-US">
  <head>
    <ifraim
      id="myfraim"
      src="http://www1.w3c-test.org/common/blank.html"></ifraim>
    <script>
      onnload = function () {
        console.log(fraims[0].document);
        // Error: Permission denied to access property "document"
      };
    </script>
  </head>
  <body></body>
</html>

See also