add: support custom headers
This commit is contained in:
@@ -21,7 +21,14 @@ import { findActualExecutable } from "spawn-rx";
|
||||
import mcpProxy from "./mcpProxy.js";
|
||||
import { randomUUID } from "node:crypto";
|
||||
|
||||
const SSE_HEADERS_PASSTHROUGH = ["authorization"];
|
||||
const SSE_HEADERS_PASSTHROUGH = [
|
||||
"authorization",
|
||||
"x-api-key",
|
||||
"x-custom-header",
|
||||
"x-auth-token",
|
||||
"x-request-id",
|
||||
"x-correlation-id"
|
||||
];
|
||||
const STREAMABLE_HTTP_HEADERS_PASSTHROUGH = [
|
||||
"authorization",
|
||||
"mcp-session-id",
|
||||
|
||||
Reference in New Issue
Block a user