yireo/magento2-disable-csp

禁用CSP

安装次数: 12,808

依赖关系: 0

建议者: 0

安全性: 0

星标: 10

关注者: 1

分支: 1

类型:magento2-module

1.0.1 2024-06-28 12:19 UTC

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 移除。

替代方案