Files
OmniRoute/open-sse/utils/cors.ts
backryun a16e47c593 fix(providers): refresh web client user agents (#1699)
Integrated release/v3.7.2 changes — refreshed web client user agents, env docs, Gemini OAuth fix
2026-04-28 02:41:19 -03:00

14 lines
591 B
TypeScript

/**
* Static CORS headers for open-sse handlers.
*
* `Access-Control-Allow-Origin` is set by the Next.js middleware
* (`src/server/cors/origins.ts`). Handlers in this package only need the
* methods/headers list; the middleware overlays the allowed origin per
* the central allowlist on the way out.
*/
export const CORS_HEADERS: Record<string, string> = {
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
"Access-Control-Allow-Headers":
"Content-Type, Authorization, x-api-key, anthropic-version, x-omniroute-connection, x-internal-test, accept",
};