To Configure and Apply JSON Threat Protection
By its nature, JSON is vulnerable to JavaScript injection. When you parse the JSON object, the malicious code inflicts its damages. An inordinate increase in the size and depth of the JSON payload can indicate injection. Applying the JSON threat protection policy can limit the size of your JSON payload and thwart recursive additions to the JSON hierarchy.
-
Click the version number of an API.
-
On the API dashboard, click Policies.
The list of any applied policies appears.
-
In Apply New Policy.
-
In Select Policy, choose JSON Threat Protection, and click Configure Policy.
-
Specify set limits, and click apply to start protecting your JSON code. The following example shows configuration of a JSON threat protection policy.
Configuring a value of -1, for example for node depth, specifies unlimited depth.