Skip to content

Commit 98b9f81

Browse files
committed
refactor(electron): enable web security and disable running insecure content
1 parent 3df9e2a commit 98b9f81

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/frontend/index/install.nim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ proc createInstallSubwindow*(): js =
3434
"webPreferences": js{
3535
"nodeIntegration": true,
3636
"contextIsolation": false,
37+
"webSecurity": true,
38+
"allowRunningInsecureContent": false,
3739
"spellcheck": false
3840
},
3941
"frame": false,

src/frontend/index/window.nim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ proc createMainWindow*: js =
7979
"webPreferences": js{
8080
"nodeIntegration": true,
8181
"contextIsolation": false,
82+
"webSecurity": true,
83+
"allowRunningInsecureContent": false,
8284
"spellcheck": false
8385
},
8486
}

0 commit comments

Comments
 (0)