Because good website security shouldn't only be available to mad scientists!
JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.eslintrc
.gitignore
README.md

README.md

Laboratory

Laboratory is an experimental Firefox extension 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

Laboratory requires Firefox 57 (Quantum) to function properly.

Developing and Installing Locally

It is recommend that developers use web-ext for installation and testing. It provides a number of useful features, such as automated installation and autoreload upon source changes:

$ web-ext run --browser-console -s src --ignore-files 'img/*.afdesign'

If you are simply looking to give it a single run, you can install it by navigating to:

Firefox -> Tools -> Add-ons -> Extensions -> (Gear Icon) -> Debug Add-ons -> Load Temporary Add-on

Navigate to src/manifest.json and it should start running immediately.