• Using Astra Pro 4.7.2 and Astra Theme 4.7.3 we’re seeing a ton of iframe related errors in the JS Console when editing content in the block editor.

    // The error

    Uncaught DOMException: Permission denied to access property "document" on cross-origin object

    // bad file and line
    SNIP.../wp-content/themes/astra/inc/assets/js/block-editor-script.js?ver=4.7.3

    // snippet...
    for (const iframe of iframes) {
    const iframeDoc = iframe?.contentWindow.document || iframe?.contentDocument;
    if (!iframeDoc?.head) {
    continue;
    }
    appendLinkIfNotExists(iframeDoc, googleFontsStyle, 'astra-google-fonts-css');
    }

    It looks like the JS is trying to interact with iframes from an external host, like some form of cross-site-scripting. That can’t be right though?

Viewing 1 replies (of 1 total)
  • Hi @headwall,

    I don’t think if it is related to Astra Pro plugin. Could you please share the steps to replicate this? Have you tried deactivating plugins to check plugin conflict?

    Well, if you are sure this is related to the Astra Pro plugin, since discussing anything related to the pro version is not allowed in this forum, as mentioned in the Forum Guidelines, please reach out to us thru our Support Portal and mark this topic as Resolved.

    Kind regards,
    Herman ??

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple/repeated iframe errors in JS Console in BLock Editor’ is closed to new replies.