yireo / magento2-disable-csp
禁用CSP
1.0.1
2024-06-28 12:19 UTC
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
对于不需要启用CSP的商店,此模块提供了一种快速解决方案。只需安装并启用模块即可。
技术上,它用模拟替换了默认的 Magento\Csp\Api\CspRendererInterface
实现。
使用方法
composer require yireo/magento2-disable-csp bin/magento module:enable Yireo_DisableCsp
备注
仍然需要 magento/module-csp
包,并且不应通过 composer replace 移除。
替代方案
- Wouyang_DisableCsp
- 禁用
csp_render
观察者
- 禁用
- baldwin-agency/magento2-module-csp-shim
- 覆盖了 Magento CSP 模块本身及其命名空间(不美观)