reZach/secure-electron-template
소개
보안을 고려해 Electron 앱을 구축하는 가장 좋은 방법입니다.
보안 및 개인정보 보호What you can do
- Only load secure content - ✅ (But the developer is responsible for loading secure assets only 🙂)
- Do not enable node.js integration for remote content - ✅
- Enable context isolation for remote content - ✅
- Handle session permission requests from remote content - ✅
측정된 스타 증가
- in 24h
- 0
- in 7 days
- -2
- in 15 days
- -3
- in 1 month
- -5
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalsecure-electron-template
A current electron app template with the most popular frameworks, designed and built with security in mind. (If you are curious about what makes an electron app secure, please check out this page).
How to get started
To get started, clone the repository by clicking the
button, or through the command line (git clone https://github.com/reZach/secure-electron-template.git).
Once cloned, install the dependencies for the repo by running the following commands (you do not have to run the first command if your command line is already inside the newly cloned repository):
cd secure-electron-template
npm i
npm run dev
Are you using
yarn? You'll want to read this issue.
When you'd like to test your app in production, or package it for distribution, please navigate to this page for more details on how to do this.
Demo

Features
Taken from the best-practices official page, here is what this repository offers!
- Only load secure content - ✅ (But the developer is responsible for loading secure assets only 🙂)
- Do not enable node.js integration for remote content - ✅
- Enable context isolation for remote content - ✅
- Handle session permission requests from remote content - ✅
- Do not disable websecurity - ✅
- Define a content security policy - ✅
- Do not set allowRunningInsecureContent to true - ✅
- Do not enable experimental features - ✅
- Do not use enableBlinkFeatures - ✅
- Do not use allowpopups - ✅
- <webview> verify options and params - ✅
- Disable or limit navigation - ✅
- Disable or limit creation of new windows - ✅
- Do not use openExternal with untrusted content - ✅
- Disable remote module - ✅
- Filter the remote module - ✅
- Use a current version of electron - ✅
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
- Typescript
- Redux (with Redux toolkit)
- Babel
- Webpack (with webpack-dev-server)
- Electron builder (for packaging up your app)
- Mocha
Bonus modules
What would a template be without some helpful additions?
- i18next (with this plugin for localization).
- Store (for saving config/data)
- Context menu (supports custom context menus)
- Easy redux undo (for undo/redoing your redux actions)
- License key validation (for validating a user has the proper license to use your app) new!
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.
FAQ
Please see our faq for any common questions you might have. NEW TO ELECTRON? Please visit this page.
Show us your apps!
If you've built any applications with our template, we'd love to see them!.
관련 프로젝트 살펴보기
불러오는 중…