Uncaught SecurityError: Blocked a frame with origin "https://domain.com/area" from accessing a cross-origin frame.
When use window.opener to refresh your page, if you came to this page from another domain, you'll get cross-origin error. To resolve this issue;
//change from
window.opener.location.reload();
//to
window.location.reload();