mirror of
https://github.com/FlowiseAI/Flowise.git
synced 2026-10-12 02:02:17 +00:00
Remove ability for customers to use unprotected HTTP modules (#5727)
* Remove ability for customers to use unprotected HTTP modules, they should use secured dependencies instead * Remove ability for customers to use unprotected HTTP modules --------- Co-authored-by: yau-wd <[email protected]>
This commit is contained in:
co-authored by
yau-wd
parent
23ce86c2e3
commit
b7e836cf14
@@ -122,21 +122,7 @@ export const availableDependencies = [
|
||||
|
||||
const defaultAllowExternalDependencies = ['axios', 'moment', 'node-fetch']
|
||||
|
||||
export const defaultAllowBuiltInDep = [
|
||||
'assert',
|
||||
'buffer',
|
||||
'crypto',
|
||||
'events',
|
||||
'http',
|
||||
'https',
|
||||
'net',
|
||||
'path',
|
||||
'querystring',
|
||||
'timers',
|
||||
'tls',
|
||||
'url',
|
||||
'zlib'
|
||||
]
|
||||
export const defaultAllowBuiltInDep = ['assert', 'buffer', 'crypto', 'events', 'path', 'querystring', 'timers', 'url', 'zlib']
|
||||
|
||||
/**
|
||||
* Get base classes of components
|
||||
|
||||
Reference in New Issue
Block a user