I am creating a javascript console extension for theia-ide for use by students who are on computers where devtools are blocked.
The IDE interface is at my-project.ide.example.com
, while the iframe preview is at preview.my-project.ide.example.com
. In order to get this console working, I need access to the window object on the iframe. I know postMessage()
is preferrable for cross-origin iframe communication, but that is not an option for me as I would have to serialize every imaginable type of javascript object and re-construct it on the other end.
Is there any way to loosen the cross-origin restriction to allow access from the opener window at the "parent" domain?