fix: disable DNS rebinding protection for cluster-internal access

This commit is contained in:
2026-03-07 05:50:28 +00:00
parent 3e177612b6
commit 622f88097f

View File

@@ -23,19 +23,8 @@ mcp = FastMCP(
port=8000,
sse_path="/sse",
transport_security=TransportSecuritySettings(
enable_dns_rebinding_protection=True,
allowed_hosts=[
"localhost",
"localhost:*",
"127.0.0.1",
"127.0.0.1:*",
"knowledge-mcp",
"knowledge-mcp:*",
"knowledge-mcp.knowledge-mcp.svc",
"knowledge-mcp.knowledge-mcp.svc:*",
"knowledge-mcp.knowledge-mcp.svc.cluster.local",
"knowledge-mcp.knowledge-mcp.svc.cluster.local:*",
],
enable_dns_rebinding_protection=False,
allowed_hosts=["*"],
allowed_origins=[],
),
)