title: electron-packager Not allowed to load local resource
body: <p>When running my app directly with electron</p>
  
  <pre><code>electron .
  </code></pre>
  
  <p>everything works fine, but when packaging the app with electron-packager and running it, i get the error</p>
  
  <pre><code>Not allowed to load local resource
  </code></pre>
  
  <p>in the code</p>
  
  <pre><code>mainWindow.loadURL(`${__dirname}/../build/index.html`)
  </code></pre>
  
  <p>any help??</p>