Yireo_DisableCsp

PHP 8.2 - 8.5
Magento 2.4.6 - 2.4.9
CSP Yes
License OSL-3.0
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

Current status

Magento 2 Static Tests success
Magento 2 Integration Tests success
Magento 2 Unit Tests success
Playwright test success
Magento 2 DI compilation success

Support

For getting support, create an Issue under the following project URL:

https://github.com/yireo/Yireo_DisableCsp

Composer details
Magento module name
Yireo_DisableCsp
Composer name
yireo/magento2-disable-csp
Composer 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 06 November 2026
1.0.2 06 November 2026
1.0.1 06 November 2026
Changelog

Last modified: October 17, 2026