Uncaught (in promise) DOMException: Blocked a frame with origin “http://localhost” from accessing a cross-origin frame.
Would anyone be able to shed some light on how I can get around this? How does the myalgo wallet avoid cross-origin issues? Am I wasting my time trying to port this into PHP?
Any help would be appreciated. Thanks
Normally, scripts on different pages are allowed to access each other if and only if the pages they originate from share the same protocol, port number, and host. Above error message shows that you can’t access an < iframe > with different origin using JavaScript/jQuery, it would be a huge security flaw if you could do it.
window.postMessage() provides a controlled mechanism to securely circumvent this restriction.