MCPcopy Index your code
hub / github.com/parse-community/parse-server / checkProhibitedKeywords

Method checkProhibitedKeywords

src/Utils.js:435–445  ·  view source on GitHub ↗
(config, data)

Source from the content-addressed store, hash-verified

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.

Callers 5

RestWrite.jsFile · 0.80
updateMethod · 0.80
createMethod · 0.80
_handleBufferedUploadMethod · 0.80
_handleStreamUploadMethod · 0.80

Calls 1

Tested by

no test coverage detected