Update: 禁用nodeIntegrationInWorker
This commit is contained in:
2
main.js
2
main.js
@@ -81,7 +81,7 @@ function createWindow(filePath = null, indexUrl = null) {
|
||||
allowRunningInsecureContent: true,
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
nodeIntegrationInWorker: true,
|
||||
nodeIntegrationInWorker: false,
|
||||
allowRunningInsecureContent: true,
|
||||
enableRemoteModule: true,
|
||||
contextIsolation: false,
|
||||
|
||||
Reference in New Issue
Block a user