signify-nz / silverstripe-security-headers
Adds configurable security headers to HTTP responses via middleware.
Installs: 8 076
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 12
Forks: 1
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- silverstripe/cms: ^4.0 || ^5.0
- silverstripe/framework: ^4.6 || ^5.0
- silverstripe/vendor-plugin: ^1.0 || ^2.0
- symbiote/silverstripe-queuedjobs: ^4.8 || ^5.0
Requires (Dev)
- phpunit/phpunit: ^9.5
- silverstripe/framework: ^4.10 || ^5.0
- squizlabs/php_codesniffer: ^3.0
Suggests
- unclecheese/display-logic: Provides functionality to hide filter fields that aren't active.
This package is not auto-updated.
Last update: 2024-12-18 02:04:17 UTC
README
SilverStripe security headers
Inspired by Guttmann/silverstripe-security-headers.
SilverStripe module for easily adding a selection of useful HTTP headers.
Additionally provides a report of Content Security Policy violations.
Comes with a default set of headers configured, but can be used to add any headers you wish (as well as overriding or removing the default headers).
Install
For SilverStripe 3, see the appropriate branch
Install via composer:
composer require signify-nz/silverstripe-security-headers
Usage
For information on how to setup and use this module, please refer to the documentation.
Contributing
If you would like to contribute either via code fixes, enhancements, or localisations, please see the contributing guidelines.
CSS/JS Development
Setup
For development you will need Node.js and yarn installed.
Next, you need to install the required npm packages.
yarn install
Compiling assets
You can compile assets using yarn watch
.
Produce minified (production) files using yarn package
.
Linting
Check over your JavaScript and SASS source code individually:
yarn lint-js yarn lint-sass
You can also lint both in a single command:
yarn lint