I have an application that creates a pop-up window, which loads a page which then fetches data from the opening window, like so:
var globals = window.opener.globalsCache;
However, when deployed to production, this intermittently causes the following error:
DOMException: Blocked a frame with origin from accessing a cross-origin frame
Note that the popup window has exactly the same URL as the opener, except for the hash. (i.e. https:/hostname.tld/application/#page-name ).
Has anyone seen this issue before? Any ideas on why it is happening and how to fix it?