定制 superb-code/module-content-security 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

superb-code/module-content-security

最新稳定版本:1.0.6

Composer 安装命令:

composer require superb-code/module-content-security

包简介

Content Security

README 文档

README

Latest Stable Version Total Downloads

Install via composer (recommend)

Run the following command in Magento 2 root folder:

composer require superb-code/module-content-security
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Environment variables usage (app/etc/env.php)

  1. superb/content_security/escape_config - escape config, see example below
  2. superb/content_security/escape_debug_log_enabled - enable/disable debug log. Helps to identify used blocks
'superb' => [
    'content_security' => [
        'escape_debug_log_enabled' => true,
        'escape_config' => [
            'checkout_index_index' => [//full action name
                'enabled' => true,
                'allowed_tags' => [
                    'div',
                    'p',
                    'a',
                    'ul',
                    'li',
                    'h1',
                    'h2',
                    'h3',
                    'h4',
                    'h5',
                    'h6'
                ],
                'allowed_attributes' => [
                    'id',
                    'class',
                    'style',
                    'src',
                    'href'
                ]
            ],
            'footer_bottom_links' => [//static block identifier
                'enabled' => true,
                'allowed_tags' => [
                    'div',
                    'p',
                    'a',
                    'ul',
                    'li',
                    'h1',
                    'h2',
                    'h3',
                    'h4',
                    'h5',
                    'h6'
                ],
                'allowed_attributes' => [
                    'id',
                    'class',
                    'style',
                    'src',
                    'href'
                ]
            ]
        ]
    ]
]

统计信息

  • 总下载量: 1.91k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2025-01-06