title: SCORM: SecurityError: Blocked a frame with origin from accessing a cross-origin frame FOR SAME ORIGIN
body: <p>I am aware there are plenty of similar questions, the only difference is I get this for two pages I serve from the **same ** domain. This can be seen in the example below.</p>
  <pre><code>    Uncaught DOMException: Blocked a frame with origin &quot;https://content.samba.net&quot; from accessing a cross-origin frame. 
    
  at findAPI (https://content.samba.net/00/07/19-10/scorm_support/scorm_support.js:14:10)   
  at getAPI (https://content.samba.net/00/07/19-10/scorm_support/scorm_support.js:61:13)   
  at https://content.samba.net/00/07/19-10/SCORM.htm:200:16
  </code></pre>
  <p>Shouldn't this happen only between different domains?</p>
  <p>============================== EDIT =======================================<br />
  Ofcourse, few seconds after I posted, I found the issue. The SCORM package has a function to locate the SCORM API. It looks at top and opener. In my case the Window Opener is in a different domain, It was trying to access that.<br />
  I'll leave it for history sake. My answer has the details.</p>