Skip to content

Variable: DEFAULT\_FORWARD\_HEADERS

const DEFAULT_FORWARD_HEADERS: readonly string[]

The x- headers forwarded when a deployment configures nothing.

These are the header NAMESPACES this repo’s own UI sends and its own server reads - Mastra thread/model routing (x-mastra-thread-id, x-mastra-model) and MLflow trace correlation (x-mlflow-trace-id) - so a dbx-tools app keeps working behind the tunnel with no configuration.

Deliberately GLOBS rather than the exact constants from @dbx-tools/shared-mastra: importing them would make the gate - a transport-level component that has no other opinion about Mastra - depend on an agent package for three strings, and a namespace glob also covers the next header those packages add. The namespaces are the stable part of the contract.