Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/april/laboratory
Because good website security shouldn't only be available to mad scientists!
https://github.com/april/laboratory
Last synced: about 1 month ago
JSON representation
Because good website security shouldn't only be available to mad scientists!
- Host: GitHub
- URL: https://github.com/april/laboratory
- Owner: april
- License: mpl-2.0
- Created: 2017-02-14T21:27:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T06:38:40.000Z (almost 2 years ago)
- Last Synced: 2024-11-05T13:41:51.511Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://addons.mozilla.org/en-US/firefox/addon/laboratory-by-mozilla/
- Size: 2.32 MB
- Stars: 175
- Watchers: 6
- Forks: 13
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Laboratory
==========Laboratory is a Firefox and Chrome WebExtension that helps you generate a proper Content Security Policy (CSP) header for your website. Simply start recording, browse your site, and enjoy the CSP header that it produces:
![Preview Image](https://i.imgur.com/Ij1agqQ.png)
Laboratory requires Firefox 57 (Quantum) to function properly.
## Developing and Installing Locally
It is recommend that developers use [web-ext](https://github.com/mozilla/web-ext) for installation and testing. It provides a number of useful features, such as automated installation and autoreload upon source changes. For testing and development, run `npm install` and then run the following commands in two separate terminal windows:
```bash
$ npm run watch
``````bash
$ npm run start
```This will launch it in both Firefox and Chrome simultaneously. You can run `npm run start:firefox` or `npm run start:chromium` if you wish to launch it only in a single browser.
Lastly, for a "production" release, run:
```bash
$ npm install
$ NODE_ENV=production npm run build
$ zip dist/laboratory.src.zip *.md config package* src
```