Skip to main content

Administration

Browser origins​

Browser-based applications can send requests to the Witboost MCP endpoint (/api/mcp). These requests can include an Origin header identifying the web application that initiated them. For example, a client running at https://assistant.example.com can send that value as its origin, even though the request destination is your Witboost installation.

Origin validation lets administrators restrict which of these web application hostnames may call the MCP endpoint. It provides an additional defense against untrusted browser origins and DNS rebinding; it does not identify the user or grant access to tools.

When this applies​

  • Clients sending an Origin header: by default, Witboost checks the header and rejects requests whose origin hostname is not trusted with 403 Forbidden, before authentication or request-body parsing.
  • Clients without an Origin header: the origin check does not reject these requests, even when enabled. Server-to-server and command-line MCP clients normally fall into this category; actual behavior depends on the client.

Before connecting browser-based MCP clients, identify the origins they send and add any trusted client hostnames that are not already covered by the public Witboost URLs. Review these hostnames when upgrading from a version where validation was disabled by default.

MCP Origin validation is enabled by default. Authentication, permissions, and resource authorization remain required whether it is enabled or disabled. This setting does not configure browser CORS, which separately controls whether a browser allows a web application to read a response.

Configuration​

No configuration is required to enable Origin hostname validation. Requests with an Origin header must match a hostname from the configured public Witboost URLs. To allow additional trusted client hostnames, configure ui.appConfig.mcp.allowedOriginHostnames in the Witboost Helm Chart values.yaml file:

ui:
appConfig:
mcp:
allowedOriginHostnames:
- assistant.example.com

Although an origin includes a scheme, hostname, and port, this check compares only the hostname. Each allowed hostname is written without a scheme, port, or path. For example, use assistant.example.com, not https://assistant.example.com.

To explicitly disable validation, set ui.appConfig.mcp.originValidation.enabled: false. Omitting this setting leaves validation enabled. The ui.appConfig.mcp.allowedOriginHostnames list is used only when validation is enabled. Disabling validation removes the browser-origin and DNS-rebinding protection required by MCP.