Thursday, April 24, 2014

Error: Permission denied to access property related to window.opener

Error

"Error: Permission denied to access property 'myFunctionName'"

while trying to send back some data through window.opener.myFunctionName

Solution

There was a redirection in the page

header("Location:https://XYZ")

I found a BUG which is the URL was changed from https to http in the middle of the code thus this security error occurred