concept-image / wp-csp
A package for adding a Content security policy on WordPress with Roots - Bedrock/Acorn
Requires
- php: >=8.1
- roots/acorn: >=4.3
README
WP CSP is a Composer package that provides a Content Security Policy (CSP) implementation for WordPress Bedrock/Sage applications.
Installation
You can install the package via Composer:
composer require concept-image/wp-csp
Publish Command
After installing the package, you need to publish the configuration file.
Run the following command:
wp acorn vendor:publish --tag="wp-csp"
Usage
After publishing the configuration file, you can customize it as needed.
The package automatically sets up the Content Security Policy for your WordPress application. Make sure to review and modify the config/csp.php
file to define the rules that suit your project.
Contributing
Contributions are welcome! Please submit a pull request or open an issue to discuss any changes you'd like to make.
License
This package is open-source software licensed under the MIT license. Please see the License File for more information.