Skip to main content
The request_size_limiter policy rejects requests whose body exceeds a configured limit, before they’re forwarded upstream — a cheap guard against accidental or abusive oversized prompts. It runs at pre_request.

Configure in the console

  1. PoliciesCatalogRequest size.
  2. Set max payload size (and unit), max characters, and whether Content-Length is required.
  3. Choose scope (gateway-wide or targeted) and save.
Run it as a global policy at pre_request to set a gateway-wide ceiling, or scope it to specific consumers for tighter per-tenant limits.