Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

httpCors.ts

16 lines539 Bytes

1import { ORCHESTRATION_PROTOCOL_HEADER } from "@t3tools/contracts";
2​
3export const browserApiCorsAllowedMethods = ["GET", "POST", "OPTIONS"] as const;
4export const browserApiCorsAllowedHeaders = [
5 "authorization",
6 "b3",
7 "traceparent",
8 "content-type",
9 "dpop",
10 ORCHESTRATION_PROTOCOL_HEADER,
11] as const;
12​
13export const DESKTOP_RENDERER_ORIGINS = ["t3code://app", "t3code-dev://app"] as const;
14​
15/** MCP refuses every browser Origin with 403, so the browser CORS layer must not answer for it. */
16export const MCP_HTTP_PATH = "/mcp";