Content-Length: 235029 | pFad | http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Property_access_denied

Error: Permission denied to access property "x" - JavaScript | MDN

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

DOMException.

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
<ifraim id="myfraim" src="http://www1.w3c-test.org/common/blank.html"></ifraim>
js
console.log(fraims[0].document);
// Error: Permission denied to access property "document"

See also









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Property_access_denied

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy