You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the default of contextIsolation from false to true
Without contextIsolation any code running in a renderer process can quite easily reach into Electron internals or your preload script and perform privileged actions that you don't want arbitrary websites to be doing.
For more information on contextIsolation, how to enable it easily and it's security benefits please see our dedicated Context Isolation Document.
We're making this change to improve the default security of Electron apps so that your app is only insecure if you have deliberately opted in to the insecure behaviour.
Timeline
Deprecate the current default of contextIsolation in Electron 10
Change to the new default (true) in Electron 12
Remove the nodeIntegration flag completely
Historically we have recommended that apps use nodeIntegration: false to prevent renderers from having access to Electron internals or the require function. Over time it has become clear that this flag actually has negligible security impact and can easily be bypassed. This was the original motivation for adding the contextIsolation flag.
We are now confident enough in the contextIsolation feature that we intend to remove the misleading nodeIntegration flag and instead strongly recommend usage of contextIsolation.
Timeline
Deprecate the flag and instruct folks to use contextIsolation: true instead of nodeIntegration: false in Electron 10
Remove the flag and any effect it had in Electron 12
boutetnico, nornagon, reZach, miniak, moloch-- and 26 morenornagon, moloch--, Venryx, varun-manjunath, erickzhao and 5 more