Stable v1.0.3

Magento2 Disable Csp

yireo/magento2-disable-csp

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

106,864
Downloads
Below average
19
GitHub Stars
Below average
8mo ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
2 warnings
PHPStan Level 9

Tested on Magento 2.4.8-p3

Recent Test History

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

v1.0.3 on Magento 2.4.8-p3
Dec 26, 2025
GitHub Repository
Source code & docs
Packagist
Version history
Issues & Support
Get help or report bugs

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

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.

Back to All Modules