(config, data)
| 433 | } |
| 434 | |
| 435 | static checkProhibitedKeywords(config, data) { |
| 436 | if (config?.requestKeywordDenylist) { |
| 437 | // Scan request data for denied keywords |
| 438 | for (const keyword of config.requestKeywordDenylist) { |
| 439 | const match = Utils.objectContainsKeyValue(data, keyword.key, keyword.value); |
| 440 | if (match) { |
| 441 | throw `Prohibited keyword in request data: ${JSON.stringify(keyword)}.`; |
| 442 | } |
| 443 | } |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | /** |
| 448 | * Moves the nested keys of a specified key in an object to the root of the object. |
no test coverage detected