Limit XML complexity and attribute sizesv3.1+

Configure an XML Threat Protection policy to catch XML requests that exceed configured limits.

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: xml-threat-protection
    config:
      max_depth: 50
      localname: 512
      prefix: 512
      namespaceuri: 1024
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!