禁用allowRunningInsecureContent

This commit is contained in:
buvta
2020-12-19 13:27:07 +08:00
parent 946978fa86
commit ef704a9d45

View File

@@ -22,7 +22,8 @@ function createWindow () {
webPreferences: {
webSecurity: false,
enableRemoteModule: true,
nodeIntegration: process.env.ELECTRON_NODE_INTEGRATION
nodeIntegration: process.env.ELECTRON_NODE_INTEGRATION,
allowRunningInsecureContent: false
}
})