Home

Awesome

Deprecation notice

This project is replaced by the reviewContentSecurityPolicy transform in Assetgraph.

The transform is set up in Assetgraph-builder as well, which gives you aneasy to consume commend line tool to build your page and keep your CSP-rules tested and up to date.

contentsecure (DEPRECATED)

NPM version Build Status Coverage Status Dependency Status

A Content Security Policy auto generator.

Read more about Content Security Policies.

This binary will return a string that you can use as an http-header in your web server responses, which in turn will make browsers that support Content Security Policies follow this policy.

Installation

npm install -g contentsecure

Usage

contentsecure -h will show you a list of all command line options.

contensecure takes any number of web assets as input arguments. It will parse all of these assets and follow any relations to other assets. Think if this as a scraper for your website, except that it only populates assets that are on your local disk.

Example:

contentsecure path/to/index.html /path/to/404.html /path/to/docs/**/*.html

Note that you usually only need to set entry pages as a seed for contentsecure, since it finds dependencies and relations itself.

TODO

License

BSD

Bitdeli Badge