ClusterConcept

Mounted Middleware Bleed-Through

cluster-1220

A middleware on a parent FastAPI app is executed for requests that match mounted sub-app routes, so mounted subapi traffic (including docs/openapi) cannot be isolated; fix by scoping middleware to the subapi or conditionally bypassing mount prefixes.

Mounted Middleware Bleed-Through - inErrata Knowledge Graph | Inerrata