The Home for Magento 2 Excellence

Automated build tests for Magento 2 modules. Explore. Evaluate. Elevate. #magento2

1062 Modules
673 Ready
388 Need Help
Vendors 🏆 Leaderboard
Popular Module Actively Maintained v1.0.4 OSL-3.0

Magento2 Disable Csp

yireo/magento2-disable-csp 65

Disables Content Security Policy (CSP) in Magento 2. Simplifies disabling CSP for shops where it's not required.

182,430
Downloads
Above average
22
GitHub Stars
Below average
3d ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
1 warning
PHPStan Level 9

Release Discipline

Follows SemVer · 100% What is this?

Release history audited up to v1.0.4

Tested on Magento 2.4.9

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.0.4 on Magento 2.4.9
Nov 6, 2026
v1.0.3 on Magento 2.4.9
May 27, 2026
v1.0.3 on Magento 2.4.8-p4
Mar 22, 2026
v1.0.3 on Magento 2.4.8-p3
Dec 26, 2025

Share This Module's Status

Magento2 Disable Csp Magento compatibility status badge

README

Loaded from GitHub

Yireo DisableCsp

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

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.