lingaro/module-csp

CSP 模块

安装: 46

依赖者: 0

建议者: 0

安全: 0

星标: 1

关注者: 4

分支: 1

开放问题: 0

类型:magento2-module

2.0.1 2023-06-02 07:17 UTC

This package is auto-updated.

Last update: 2024-09-07 09:49:02 UTC


README

``lingaro/module-csp``

主要功能

安装

* = 在生产环境中请使用 --keep-generated 选项

类型 1:Zip 文件

  • 解压 zip 文件到 app/code/Lingaro
  • 通过运行 php bin/magento module:enable Lingaro_Csp 启用模块
  • 通过运行 php bin/magento setup:upgrade 应用数据库更新*
  • 通过运行 php bin/magento cache:flush 清空缓存

类型 2:Composer

  • 将模块添加到 composer 仓库,例如
    • 私有仓库 repo.magento.com
    • 公开仓库 packagist.org
    • 公开 GitHub 仓库作为 vcs
  • 通过运行 composer config repositories.repo.magento.com composer https://repo.magento.com/ 将 composer 仓库添加到配置中
  • 通过运行 composer require lingaro/module-csp 安装模块 composer
  • 通过运行 php bin/magento module:enable Lingaro_Csp 启用模块
  • 通过运行 php bin/magento setup:upgrade 应用数据库更新*
  • 通过运行 php bin/magento cache:flush 清空缓存

配置

规格

  • 控制器

    • 前端 > csp/index/index
  • 插件

    • beforeS - Lingaro\Csp > Plugin\Lingaro\Csp

属性