JsonThreatProtectionConfig
Defined in: src/policies/traffic/json-threat-protection.ts:14
Configuration for the jsonThreatProtection policy.
Extends
Section titled “Extends”Properties
Section titled “Properties”contentTypes?
Section titled “contentTypes?”
optionalcontentTypes:string[]
Defined in: src/policies/traffic/json-threat-protection.ts:30
Content types to inspect.
Requests with other content types pass through without inspection.
Default: ["application/json"].
maxArraySize?
Section titled “maxArraySize?”
optionalmaxArraySize:number
Defined in: src/policies/traffic/json-threat-protection.ts:22
Maximum array length. Default: 100.
maxBodySize?
Section titled “maxBodySize?”
optionalmaxBodySize:number
Defined in: src/policies/traffic/json-threat-protection.ts:24
Maximum raw body size in bytes. Checked BEFORE parsing. Default: 1048576 (1 MB).
maxDepth?
Section titled “maxDepth?”
optionalmaxDepth:number
Defined in: src/policies/traffic/json-threat-protection.ts:16
Maximum nesting depth. Default: 20.
maxKeys?
Section titled “maxKeys?”
optionalmaxKeys:number
Defined in: src/policies/traffic/json-threat-protection.ts:18
Maximum number of keys per object. Default: 100.
maxStringLength?
Section titled “maxStringLength?”
optionalmaxStringLength:number
Defined in: src/policies/traffic/json-threat-protection.ts:20
Maximum string value length (also applies to object keys). Default: 10000.
skip()?
Section titled “skip()?”
optionalskip: (c) =>boolean|Promise<boolean>
Defined in: src/policies/types.ts:33
Skip this policy when condition returns true
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”boolean | Promise<boolean>