解决electron遇见Not allowed to load local resource:

  new BrowserWindow({
    width: 800, 
    height: 600
  })

加上

  new BrowserWindow({
    width: 800, 
    height: 600,
    webPreferences: {
      webSecurity: false
    }
  })

麻凯倩

微信:makaiqian