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

Function getAllowedCorsOrigins

packages/server/src/utils/XSS.ts:24–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24export function getAllowedCorsOrigins(): string {
25 // Expects FQDN separated by commas, otherwise nothing.
26 return process.env.CORS_ORIGINS ?? ''
27}
28
29export function getAllowCredentials(): boolean {
30 return process.env.CORS_ALLOW_CREDENTIALS === 'true'

Callers 2

validateCorsConfigFunction · 0.85
getCorsOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected