superb-code/module-content-security
最新稳定版本:1.0.6
Composer 安装命令:
composer require superb-code/module-content-security
包简介
Content Security
README 文档
README
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)
superb/content_security/escape_config- escape config, see example belowsuperb/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
其他信息
- 授权协议: proprietary
- 更新时间: 2025-01-06