4 ms·
Does the browser really have access to all the same apis as electron? Doesn't electron have broader access to the file system (e.g. all the stuff that vscode do
by throwlaplace 7y ago
Does the browser really have access to all the same apis as electron? Doesn't electron have broader access to the file system (e.g. all the stuff that vscode does).
- tlavoie 7y agoWhat the parent posted is stating is that the local web server has that system-level access, which the browser doesn't need in order to access the app. The "back end" web server can be running on whatever language stack you like, be it Go, Rust, Haskell, Common Lisp or whatever. Syncthing is one example, where it's nominally headless, but there is a local web server that can be pulled up to set preferences, monitor status and so on. Works great.
- throwlaplace 7y agooh yes you're right. i got confused for a moment. thanks!
- bobblywobbles 7y agoElectron does, but you need to consider security. Malicious apps or ill-designed architectures can leak openings where a bad actor can attack your OS. I'm the author of secure-electron-template, a template with secure practices baked-in. Security is very important and I don't feel people think of that from the get-go.