I have created an html file which is loading another html file using the <object>
tag. When I run the code, I get the following error (from the html file loaded from the parent file):
Uncaught DOMException: Blocked a frame with origin "null" from accessing a cross-origin frame.
I have added a name to the object tag. All of the files are in the same folder.
I have looked at the cross-origin policy links, and am confused, as I don't seem to be breaching what it says.
Can any one offer any advice about what I might do to fix it?
Thanks