Error: Access to this host is denied by policy.
Describe the bug
Trying to use the custom function node to call Ollama via localhost and/or IP, I get back errors that all say "Error: Access to this host is denied by policy." I have no .env file with no HTTP_DENY_LIST= I also tried creating an .env file with HTTP_DENY_LIST= TOOL_FUNCTION_EXTERNAL_DEP=node-fetch,axios ALLOW_BUILTIN_DEP=true
To Reproduce
Create an Agent flow.
Use a Custom function node that calls Ollama via IP/localhost using require('node-fetch');
Expected behavior
Expected behavior is that I shouldn't be blocked by a policy I didn't set up.
Screenshots
No response
Flow
No response
Use Method
pnpm start
Flowise Version
3.0.13
Operating System
Windows
Browser
Edge
Additional context
No response
Could be related to one of the security changes made by @christopherholland-workday, can you help with troubleshooting?
@HenryHengZJ @warlocc We were required to block calls to localhost as part of security upgrades, which can be seen here: https://github.com/FlowiseAI/Flowise/pull/5708.
If the customer is running this themselves they can always remove this logic as we discuss internally how we want to proceed
@christopherholland-workday What about making the default deny list more easily accessible, such as in settings or a default .env file? Is that an easy solution?
I believe so, we will have a solution shortly
https://github.com/FlowiseAI/Flowise/pull/5862