github.com/nginxinc/kubernetes-ingress@v1.12.5/tests/data/appprotect/csrf.yaml (about)

     1  apiVersion: appprotect.f5.com/v1beta1
     2  kind: APPolicy
     3  metadata:
     4    name: csrf
     5  spec:
     6    policy:
     7      applicationLanguage: utf-8
     8      name: specific_csrf_url_viol_csrf_block
     9      template:
    10        name: POLICY_TEMPLATE_NGINX_BASE
    11      blocking-settings:
    12        violations:
    13        - name: VIOL_CSRF
    14          alarm: true
    15          block: true
    16      csrf-protection:
    17        enabled: true
    18      csrf-urls:
    19      - "$action": delete
    20        method: POST
    21        url: "*"
    22      - enforcementAction: verify-origin
    23        method: POST
    24        url: "/backend2"