Skip to content

Commit cfe2b92

Browse files
committed
Disable Electron's remote module, to reduce risk from any XSS attacks
1 parent 6eaaf68 commit cfe2b92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ const createWindow = () => {
6262

6363
webPreferences: {
6464
contextIsolation: true,
65-
nodeIntegration: false
65+
nodeIntegration: false,
66+
enableRemoteModule: false
6667
},
6768

6869
show: false

0 commit comments

Comments
 (0)