I am trying to create an app on react(nextJs)+node. I am trying to open an new window on button click and keep track of window URL via setInteval function . The popup works fine but when I use setInteval function to access popup . It throw error SecurityError:Blockedaframewithorigin"https://a5b004e08b14.ngrok.io"fromaccessingacross-originframe. I am not able to resolve this.