title: Blocked a frame with origin from accessing a cross-origin frame in wordpress
body: <p>I am working on a website, let say the website name is "<a href="https://website" rel="nofollow noreferrer">https://website</a>" <strong>(which is built on wordpress)</strong> in which I am getting the following error on console:</p>
  
  <pre><code>Uncaught DOMException: Blocked a frame with origin "https://website" from accessing a cross-origin frame.
  
      at contents (https://website/wp-admin/load-scripts.php?c=1&amp;load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,underscore,wp-util,backbone,&amp;load%5B%5D=moxiejs,plupload&amp;ver=4.9.8:2:26921)
  
      at Function.map (https://website/wp-admin/load-scripts.php?c=1&amp;load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,underscore,wp-util,backbone,&amp;load%5B%5D=moxiejs,plupload&amp;ver=4.9.8:2:3613)
  
      at a.fn.init.n.fn.(anonymous function) [as contents] (https://website/wp-admin/load-scripts.php?c=1&amp;load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,underscore,wp-util,backbone,&amp;load%5B%5D=moxiejs,plupload&amp;ver=4.9.8:2:27001)
  
      at b (https://website/wp-admin/load-scripts.php?c=1&amp;load%5B%5D=postbox,thickbox,hoverIntent,common,admin-bar,wp-a11y,updates,plugin-install,svg-painter,heartbeat,wp-auth-check,shortcode,wp-ba&amp;load%5B%5D=ckbone,media-models,wp-plupload,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,&amp;load%5B%5D=image-edit&amp;ver=4.9.8:347:103)
  
      at HTMLBodyElement.&lt;anonymous&gt; (https://website/wp-admin/load-scripts.php?c=1&amp;load%5B%5D=postbox,thickbox,hoverIntent,common,admin-bar,wp-a11y,updates,plugin-install,svg-painter,heartbeat,wp-auth-check,shortcode,wp-ba&amp;load%5B%5D=ckbone,media-models,wp-plupload,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,&amp;load%5B%5D=image-edit&amp;ver=4.9.8:347:1306)
  
      at HTMLBodyElement.dispatch (https://website/wp-admin/load-scripts.php?c=1&amp;load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,underscore,wp-util,backbone,&amp;load%5B%5D=moxiejs,plupload&amp;ver=4.9.8:3:12444)
  
      at HTMLBodyElement.r.handle (https://website/wp-admin/load-scripts.php?c=1&amp;load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,underscore,wp-util,backbone,&amp;load%5B%5D=moxiejs,plupload&amp;ver=4.9.8:3:9173)
  
      at Object.trigger (https://website/wp-admin/load-scripts.php?c=1&amp;load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,underscore,wp-util,backbone,&amp;load%5B%5D=moxiejs,plupload&amp;ver=4.9.8:3:11573)
  
      at Object.a.event.trigger (https://website/wp-admin/load-scripts.php?c=1&amp;load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,underscore,wp-util,backbone,&amp;load%5B%5D=moxiejs,plupload&amp;ver=4.9.8:9:8275)
  
      at HTMLDivElement.&lt;anonymous&gt; (https://website/wp-admin/load-scripts.php?c=1&amp;load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,underscore,wp-util,backbone,&amp;load%5B%5D=moxiejs,plupload&amp;ver=4.9.8:3:18991)
  </code></pre>
  
  <p><strong>The above error</strong> is generated by clicking <code>View Details</code> section of wordpress plugins (as shown below):</p>
  
  <p><a href="https://i.stack.imgur.com/MC9pF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MC9pF.jpg" alt="enter image description here"></a></p>
  
  <p>This error seems to exist in <strong>every single wordpress plugins</strong> but it works when I open in a new tab but it doesn't work when I open in the same window. </p>
  
  <p><br></p>
  
  <p><strong>Problem Statement:</strong></p>
  
  <p>I am wondering which file I need to modify in wordpress in order to solve this error. This error seems to exist in every wordpress plugins. <strong>As mentioned, it works in a new tab but fails to work in the same page</strong>.</p>
  
  <p>I have a feeling I have to make some changes in the following file by seeing the error above (<strong>load-scripts.php, as the error is generated in that file</strong>) but not sure what line I need to add in order to make it work. </p>
  
  <p><strong><a href="https://website/wp-admin/load-scripts.php" rel="nofollow noreferrer">https://website/wp-admin/load-scripts.php</a></strong></p>