内容简介:The best way to build Electron apps with security in mind.If you are curious about what makes an electron app secure, please check outTaken from the
secure-electron-template
The best way to build Electron apps with security in mind.
If you are curious about what makes an electron app secure, please check out this page .
Features
Taken from the best-practices official page, here is what this repository offers!
- Only load secure content - (Need help!)
-
Do not enable node.js integration for remote content
-
:white_check_mark: -
Enable context isolation for remote content
-
:white_check_mark: -
Handle session permission requests from remote content
-
:white_check_mark: -
Do not disable websecurity
-
:white_check_mark: -
Define a content security policy
-
:white_check_mark: -
Do not set allowRunningInsecureContent to true
-
:white_check_mark: -
Do not enable expirimental features
-
:white_check_mark: -
Do not use enableBlinkFeatures
-
:white_check_mark: -
Do not use allowpopups
-
:white_check_mark: -
<webview> verify options and params
-
:white_check_mark: -
Disable or limit navigation
-
:white_check_mark: -
Disable or limit creation of new windows
-
:white_check_mark: -
Do not use openExternal with untrusted content
-
:white_check_mark: -
Disable remote module
-
:white_check_mark: - Filter the remote module - todo!
-
Use a current version of electron
-
:white_check_mark:
Included frameworks
Built-in to this template are a number of popular frameworks already wired up to get you on the road running.
- Electron
- React
- Redux (with Redux toolkit )
- Babel
- Webpack (with webpack-dev-server )
- Electron builder (for packaging up your app)
Roadmap
There are a number of additions that I'd like to implement in this repository, namely:
- i18next (for localization). A package is already been started for this work.
- An electron store (to save user data), similar to this package
Both of these plans are being held back by some enhancements I'm going to tackle detailed in this issue . They will come soon.
I'd also like to get features such as auto-updating and more release-focused enhancements as well as a redux undo/redo history and test suites, but those are lower priority (but I welcome PRs!).
Architecture
For a more detailed view of the architecture of the template, please check out here . I would highly recommend reading this document to get yourself familiarized with this template.
How to get started
git clone https://github.com/reZach/secure-electron-template.git cd secure-electron-template npm i npm run dev
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
颠覆式创新:移动互联网时代的生存法则
李善友 / 机械工业出版社 / 2015-3-1
为什么把每件事情都做对了,仍有可能错失城池?为什么无人可敌的领先企业,却在一夜之间虎落平阳?短短三年间诺基亚陨落,摩托罗拉以区区29亿美元出售给联想,芯片业霸主英特尔在移动芯片领域份额几乎为零,风光无限的巨头转眼成为被颠覆的恐龙,默默无闻的小公司一战成名迅速崛起,令人瞠目结舌的现象几乎都能被“颠覆式创新”法则所解释。 颠覆式创新教你在新的商业竞争中“换操作系统”而不是“打补丁”,小公司用破坏......一起来看看 《颠覆式创新:移动互联网时代的生存法则》 这本书的介绍吧!