How to: Enable CSRF globally with no customization¶
In the following example, CSRF Protection is enabled globally (in Block
mode) with no customization:
{
"policy": {
"applicationLanguage": "utf-8",
"name": "csrf_default",
"template": {
"name": "POLICY_TEMPLATE_FUNDAMENTAL"
},
"blocking-settings": {
"violations": [
{
"name": "VIOL_CSRF",
"alarm": true,
"block": true
}
]
},
"csrf-protection": {
"enabled": true
}
}
}