signify-nz/silverstripe-security-headers
最新稳定版本:2.1.5
Composer 安装命令:
composer require signify-nz/silverstripe-security-headers
包简介
Adds configurable security headers to HTTP responses via middleware.
README 文档
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
统计信息
- 总下载量: 10.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2020-12-01