Limit request size in bytesv1.0+

Limit the size of incoming request payloads to a specific number of bytes.

Set up the plugin

Add this section to your kong.yaml configuration file:

kong.yaml
_format_version: "3.0"
plugins:
  - name: request-size-limiting
    config:
      allowed_payload_size: 256000000
      size_unit: bytes

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!