解决Electron Security Warning (Node.js Integration with Remote Content) This renderer process has Nod

  • electron-vue编程的时候出现如下错误:
    Electron Security Warning (Node.js Integration with Remote Content) This renderer process has Node.js integration enabled and attempted to load remote content. This exposes users of this app to severe security risks.
    解决Electron Security Warning (Node.js Integration with Remote Content) This renderer process has Nod_第1张图片
  • 如果出现上述warning,可以在main.js添加:
process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true'
  • 如下:
    解决Electron Security Warning (Node.js Integration with Remote Content) This renderer process has Nod_第2张图片
  • 结局很完美:

解决Electron Security Warning (Node.js Integration with Remote Content) This renderer process has Nod_第3张图片

你可能感兴趣的:(nodejs,electron)