yireo / magento2-disable-csp
Disable CSP
Installs: 9 992
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 1
Forks: 1
Type:magento2-module
Requires
- magento/framework: ^100.0|^101.0|^102.0|^103.0
- magento/module-csp: ^100.0
This package is auto-updated.
Last update: 2024-08-28 12:42:52 UTC
README
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_render
observer
- Disables the
- baldwin-agency/magento2-module-csp-shim
- Overrides the Magento CSP module itself and its namespaces (ugly)