MCPcopy
hub / github.com/FlowiseAI/Flowise / redactSensitiveHeaders

Function redactSensitiveHeaders

packages/components/src/headerValidation.ts:85–92  ·  view source on GitHub ↗
(headers: Record<string, any> | undefined | null)

Source from the content-addressed store, hash-verified

83 * templates, observers, or logs. Comparison is case-insensitive; non-sensitive headers pass through.
84 */
85export function redactSensitiveHeaders(headers: Record<string, any> | undefined | null): Record<string, any> {
86 if (!headers) return {}
87 const out: Record<string, any> = {}
88 for (const [key, value] of Object.entries(headers)) {
89 out[key] = SENSITIVE_HEADER_NAMES.has(key.toLowerCase()) ? REDACTED_PLACEHOLDER : value
90 }
91 return out
92}

Callers 2

createWebhookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected