Skip to content
forked from april/laboratory

Because good website security shouldn't only be available to mad scientists!

License

Notifications You must be signed in to change notification settings

segln/laboratory

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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. For testing and development, run npm install and then run the following commands in two separate terminal windows:

$ npm run watch
$ 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:

$ npm install
$ NODE_ENV=production npm run build
$ zip dist/laboratory.src.zip *.md config package* src

About

Because good website security shouldn't only be available to mad scientists!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.3%
  • HTML 37.8%
  • CSS 4.9%