Skip to content

Instantly share code, notes, and snippets.

@oguzhankircali
Last active December 19, 2018 13:03
Show Gist options
  • Select an option

  • Save oguzhankircali/f79619b42c745bb13a1c07d34c7cd867 to your computer and use it in GitHub Desktop.

Select an option

Save oguzhankircali/f79619b42c745bb13a1c07d34c7cd867 to your computer and use it in GitHub Desktop.
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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment