title: How to change the domain on an iframe from the parent window?
body: <p>I have an iframe inside a window.
  I can access all the frames from the top context using the chrome developer tools with the following:</p>
  <pre><code>var vn = window.frames['frame_name'];
  </code></pre>
  <p>I can also change between the frames in the developer tools using the following selections:
  <a href="https://i.stack.imgur.com/kkE0E.png" rel="nofollow noreferrer">Chrome dev tools</a></p>
  <p>The iframes and the parent window have different domains and can be shown by switching the context and running the command:
  document.domain;</p>
  <p>I want to be able to set the domain of iframe from the parent or using a chrome extension. Can someone help me out here?
  I have tried to do the following from the parent (to change domain of iframe):
  window.frames['framename'].domain = 'parent';</p>
  <p>However, I get this Error:
  <a href="https://i.stack.imgur.com/0ic6D.png" rel="nofollow noreferrer">Cors error</a></p>