Yireo_DisableCsp
PHP
8.1 - 8.4
Magento
2.4.7 | 2.4.8
CSP
Yes
Latest Release
1.0.3
For shops that don't need CSP to be enabled, this module offers a quick solution. Just install and enable the module and you're done.
Technically, it replaces the default implementation of Magento\Csp\Api\CspRendererInterface with a dummy.
Usage
composer require yireo/magento2-disable-csp
bin/magento module:enable Yireo_DisableCsp
Remark
The magento/module-csp package is still necessary and should not be removed via composer replace.
Alternatives
- Wouyang_DisableCsp
- Disables the
csp_renderobserver
- Disables the
- baldwin-agency/magento2-module-csp-shim
- Overrides the Magento CSP module itself and its namespaces (ugly)
Current status
Support
For getting support, create an Issue under the following project URL:
https://github.com/yireo/Yireo_DisableCsp
Composer details
Magento module name
Yireo_DisableCspComposer name
yireo/magento2-disable-cspComposer version
1.0.3
Default branch
master
Requirements
magento/framework: ^100.0|^101.0|^102.0|^103.0
magento/module-csp: ^100.0
php: >=8.2 <8.6
Releases
| 1.0.3 | 23 October 2026 |
| 1.0.2 | 23 October 2026 |
| 1.0.1 | 23 October 2026 |
Changelog
No changelog available
Last modified: October 17, 2026