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();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();