Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I see an "Electron Security Warning" after updating my Electron project to the latest version?

I've created Electron-Vuejs-Vuetify project from this Vuetify's boilerplate

I'm seeing this warning in the console:

Electron Security Warning  This renderer process has Node.js integration enabled and  attempted to load remote content. This exposes users of this app to severe security risks.  For more information and help, consult https://electronjs.org/docs/tutorial/security 

Question:

What can possible cause that - Node, Vue.js, webpack's localhost config? What should I do?

like image 660
Un1 Avatar asked Feb 18 '18 17:02

Un1


People also ask

Is electron a security risk?

One of Electron's greatest strengths is also its biggest security risk. By using web technologies and languages outside the sandboxed environment of a browser, Electron opens up users' entire computers to potential exploitation.

How do you relaunch the electron app?

You can call app. quit() or app. exit() in order to close the application, then it will restart because you already called app. relaunch() .

What is Electron renderer?

The renderer process​ Each Electron app spawns a separate renderer process for each open BrowserWindow (and each web embed). As its name implies, a renderer is responsible for rendering web content.


1 Answers

Add the following line to main.js:

process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true';

However you should read Security, Native Capabilities, and Your Responsibility to fully understand the implications of doing so.

like image 61
netlander Avatar answered Oct 21 '22 15:10

netlander