MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / validateChatflowDomain

Function validateChatflowDomain

packages/server/src/utils/domainValidation.ts:22–59  ·  view source on GitHub ↗

* Validates if the origin is allowed for a specific chatflow * @param chatflowId - The chatflow ID to validate against * @param origin - The origin URL to validate * @param workspaceId - Optional workspace ID for enterprise features * @returns Promise - True if domain is allowed, false

(chatflowId: string, origin: string, workspaceId?: string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

getCorsOptionsFunction · 0.90

Calls 2

isValidUUIDFunction · 0.85
parseMethod · 0.65

Tested by

no test coverage detected