title: iframe with local resource in Electron
body: <p>I need to render <code>iframe</code> in my Electron application:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;iframe sandbox='allow-scripts' src='frm.html'&gt;&lt;/iframe&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>where the <code>frm.html</code> links the local file script <code>foo.js</code> which is part of my Electron application</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;script src="foo.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;p&gt;Inside iframe&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I run the application in Electron I can see this error in devtools console</p>
  
  <pre><code>Not allowed to load local resource: file:///C:/electron/app1/foo.js
  </code></pre>
  
  <p>Is it possible such scenario in Electron?</p>