electron项目报错如下:
Electron Security Warning (Insecure Content-Security-Policy) This
renderer process has either no Content Security Policy set or a
policy with “unsafe-eval” enabled. This exposes users of this app to
unnecessary security risks.For more information and help, consult
解决方法:
在mian.js文件里加入如下代码:
process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true'