Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

Error: Access to this host is denied by policy.

Open warlocc opened this issue 9 months ago • 5 comments

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

warlocc avatar Feb 19 '26 15:02 warlocc

Could be related to one of the security changes made by @christopherholland-workday, can you help with troubleshooting?

HenryHengZJ avatar Feb 27 '26 15:02 HenryHengZJ

@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?

warlocc avatar Feb 27 '26 17:02 warlocc

I believe so, we will have a solution shortly

https://github.com/FlowiseAI/Flowise/pull/5862