title: Blocked a frame with origin "http://localhost:63830" from accessing a cross-origin frame
body: <p>From my application I am opening a window in pop up and later on I am periodically watching the current url of that newly open window by below code but it is giving the below error Blocked a frame with origin "<a href="http://localhost:63830" rel="nofollow noreferrer">http://localhost:63830</a>" from accessing a cross-origin frame. How to solve this issue</p>
  
  <pre><code> var _url =
          "https://us.lightspeedapp.com/oauth/authorize.php?response_type=code&amp;client_id=8f2a3974b288e34327ad5564b2f7c0c5f7e28103893479b1e53a957b5de2e0ff&amp;scope=employee:all";
  
      var loggedIn = false;
      var win = window.open(_url, "windowname1", 'width=800, height=600');
  
  
      var pollTimer = window.setInterval(function () {
          try {
              debugger;
              console.log(win.document.URL);
              if (win.document.URL.indexOf(REDIRECT) != -1) {
                  window.clearInterval(pollTimer);
                  var url = win.document.URL;
                  win.close();
  
  
              }
          } catch (e) {
          }
      }, 500);
  
      e.preventDefault();
  
  }
  </code></pre>