Skip to content

Commit 951321c

Browse files
committed
Security update with sensible defaults for Electron fuses
Not using ASAR integrity for now since it's not stable on Electron v37. V8 snapshots to effectively pre-render app startup would be neat but seems a bit complicated for now.
1 parent 6d5eed3 commit 951321c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,17 @@
128128
"appImage": {
129129
"artifactName": "HttpToolkit-${version}-${arch}.${ext}"
130130
},
131-
"publish": null
131+
"publish": null,
132+
"electronFuses": {
133+
"runAsNode": false,
134+
"enableCookieEncryption": true,
135+
"enableNodeOptionsEnvironmentVariable": false,
136+
"enableNodeCliInspectArguments": false,
137+
"onlyLoadAppFromAsar": true,
138+
"loadBrowserProcessSpecificV8Snapshot": false,
139+
"grantFileProtocolExtraPrivileges": false,
140+
"resetAdHocDarwinSignature": false
141+
}
132142
},
133143
"dependencies": {
134144
"@httptoolkit/util": "^0.1.8",

0 commit comments

Comments
 (0)