Skip to content

fix: allow api.dejaship.com in MCP DNS rebinding protection#1

Merged
mingulov merged 1 commit intomainfrom
fix/mcp-allowed-hosts-cloudflare
Mar 3, 2026
Merged

fix: allow api.dejaship.com in MCP DNS rebinding protection#1
mingulov merged 1 commit intomainfrom
fix/mcp-allowed-hosts-cloudflare

Conversation

@mingulov
Copy link
Copy Markdown
Owner

@mingulov mingulov commented Mar 3, 2026

FastMCP defaults host="127.0.0.1" which auto-enables DNS rebinding
protection allowing only localhost. Requests proxied through the
Cloudflare tunnel carry Host: api.dejaship.com and were rejected
with 421. Explicitly configure TransportSecuritySettings to include
the production hostname alongside the localhost variants.

FastMCP defaults host="127.0.0.1" which auto-enables DNS rebinding
protection allowing only localhost. Requests proxied through the
Cloudflare tunnel carry Host: api.dejaship.com and were rejected
with 421. Explicitly configure TransportSecuritySettings to include
the production hostname alongside the localhost variants.
@mingulov mingulov merged commit d2578b2 into main Mar 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant