mcp-use TypeScript API
Preparing search index...
mcp-use
index
hostValidationMiddleware
Function hostValidationMiddleware
hostValidationMiddleware
(
hosts
:
string
[]
)
:
FetchMiddleware
Reject requests whose
Host
header is not on the allowlist.
Parameters
hosts
:
string
[]
Allowed hostnames (port-agnostic).
Returns
FetchMiddleware
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
mcp-use TypeScript API
Loading...
Reject requests whose
Hostheader is not on the allowlist.