I'm on a project with vuejs2 through quasar-framework.
This is an iframe that loads an external url by its src
attribute:
<iframe id="admin_iframe" :src="adminUrl" style="width:100%" frameborder="0"></iframe>
When I try to get the content iframe like this:
document.getElementById('admin_iframe').contentWindow.document.body.innerHTML;
I'm getting the error:
Uncaught DOMException: Blocked a frame with origin "http://localhost:8080" from accessing a cross-origin frame.
The iframe content is a form with some fields that I can edit and save the changes (It works) but I need to do a comfirm after making some change without doing the save when the user clicks to go back or go to another path.
So I need to check in some way if any of the fields have changed.