Skip to content

Commit 6d31c41

Browse files
author
gfs
committed
Change NodeIntegration Default to False
This should be the default as it is more secure. It is trivial for applications which wish to take on the additional attack surface to set " browserWindowOptions.WebPreferences.NodeIntegration = false;"
1 parent 98a5495 commit 6d31c41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ElectronNET.API/Entities/WebPreferences.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ public class WebPreferences
1515
public bool DevTools { get; set; } = true;
1616

1717
/// <summary>
18-
/// Whether node integration is enabled. Default is true.
18+
/// Whether node integration is enabled. Default is false.
1919
/// </summary>
20-
[DefaultValue(true)]
21-
public bool NodeIntegration { get; set; } = true;
20+
[DefaultValue(false)]
21+
public bool NodeIntegration { get; set; } = false;
2222

2323
/// <summary>
2424
/// Whether node integration is enabled in web workers. Default is false.

0 commit comments

Comments
 (0)