Csp Utilities
yireo/magento2-csp-utilities
Provides CSP (Content Security Policy) utilities for other modules, including nonce and hash generation. Helps improve website security by managing CSP directives.
Installs cleanlyBuild passingSemVer violations (0% compliant)
- Supported Magento versions
- 2.4.9
- License
- OSL-3.0
- Categories
- Integration & Third-Party, Security & Compliance
913,530 installs★ 3 stars66,532 downloads/monthLatest: v1.0.1Released 2025-03-10
composer require yireo/magento2-csp-utilitiesREADME
Reproduced from the package’s own README, under its own license, as of 2026-10-31. Links and images point back at the source repository.
This Magento 2 module offers CSP utilities for other modules, including various Yireo extensions.
Installation is usually done via other modules, but if you wanted to separately install this, here you go:
composer require yireo/magento2-csp-utilities bin/magento module:enable Yireo_CspUtilities
- Inline Script Mode
nonce: Generate CSP nonces for Yireo extensions. This is the default, but it is currently not as secure in Magento, if the HTML is cached;hash: Generate CSP hashes for Yireo extensions. This is more secure. However, with this option, your HTTP headers could grow, which could lead into webserver limits;
Links
- Packagist
- PackageMaven (source of the quality data)
- Repository
- Issues