diff --git a/src/msha/handlers/function.handler.ts b/src/msha/handlers/function.handler.ts index 66bc6158c..668a1bf26 100644 --- a/src/msha/handlers/function.handler.ts +++ b/src/msha/handlers/function.handler.ts @@ -70,6 +70,8 @@ export function handleFunctionRequest(req: http.IncomingMessage, res: http.Serve res, { target, + // Set the host header to match the remote API host. + changeOrigin: true, }, onConnectionLost(req, res, target, "↳") );