title: How can I get document from iframe from different origin?
body: <p>I'm trying to get document from iframe using</p>
  
  <pre><code>document.getElementById('product-page').contentWindow.document
  </code></pre>
  
  <p>but I keep getting this error below, is there any way i can avoid the error?</p>
  
  <blockquote>
    <p>VM1342:1 Uncaught DOMException: Blocked a frame with origin "URL" from
    accessing a cross-origin frame.
        at :1:54</p>
  </blockquote>