lusca-wrapper

0.0.0 • Public • Published

lusca-wrapper

为lusca.csrf添加ignore功能,对特定URL关闭csrf功能

用法

安装

npm i lusca-wrapper --save

config.json

{
    "appsec": {
        "enabled": true,
        "priority": 110,
        "module": {
            "name": "lusca-wrapper",
            "arguments": [
                {
                    "csrf": {
                        "ignore": ["/api/:action"]
                    },
                    "p3p": false,
                    "csp": false
                }
            ]
        }
    }
}

其中csrf.ignore必须为数组

Readme

Keywords

Package Sidebar

Install

npm i lusca-wrapper

Weekly Downloads

0

Version

0.0.0

License

BSD

Last publish

Collaborators

  • hefangshi