MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / getHttpDenyList

Function getHttpDenyList

packages/components/src/httpSecurity.ts:35–49  ·  view source on GitHub ↗

* Gets the HTTP deny list. * When HTTP_SECURITY_CHECK=false, the default deny list is omitted and only * HTTP_DENY_LIST entries are used. Defaults to true (secure). * @returns Array of denied IP addresses, hostnames, or CIDR ranges

()

Source from the content-addressed store, hash-verified

33 * @returns Array of denied IP addresses, hostnames, or CIDR ranges
34 */
35function getHttpDenyList(): string[] {
36 const securityCheckEnabled = process.env.HTTP_SECURITY_CHECK !== 'false'
37 const httpDenyListString = process.env.HTTP_DENY_LIST
38 const customList = httpDenyListString
39 ? httpDenyListString
40 .split(',')
41 .map((s) => s.trim())
42 .filter(Boolean)
43 : []
44
45 if (securityCheckEnabled) {
46 return [...new Set([...DEFAULT_DENY_LIST, ...customList])]
47 }
48 return customList
49}
50
51/**
52 * Checks if an IP address is in the deny list

Callers 2

checkDenyListFunction · 0.85
resolveAndValidateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected