+- **Hardened HTTP mode no longer rejects every request on non-default ports:** With `MCP_HTTP_HARDEN` enabled and `MCP_HTTP_ALLOWED_HOSTS` left unset, the default DNS-rebinding Host allowlist contained only the bare hostnames `127.0.0.1` and `localhost`. Because the transport matches the raw `Host` header — port included — with an exact list-membership check, any bind to a port other than 80 caused every request (including the initial `initialize`) to fail with `403`. The bind port is now threaded into the defaults, so the allowlist also accepts `127.0.0.1:PORT`, `localhost:PORT`, and `[::1]:PORT` (plus `[::1]` to mirror the SDK's own localhost default). An explicit `MCP_HTTP_ALLOWED_HOSTS` still overrides these defaults unchanged. (BUG-012, [#172](https://github.com/ihor-sokoliuk/mcp-searxng/pull/172))
0 commit comments