0.0.0 • Published 10 years ago

lusca-wrapper v0.0.0

Weekly downloads
4
License
BSD
Repository
github
Last release
10 years ago

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必须为数组