Multiple/repeated iframe errors in JS Console in BLock Editor
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Multiple/repeated iframe errors in JS Console in BLock Editor’ is closed to new replies.