@copilotkit/runtime
Version:
<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />
20 lines (19 loc) • 619 B
text/typescript
//#region src/v2/runtime/core/fetch-cors.d.ts
/**
* Built-in CORS utility for framework-agnostic CopilotKit runtime handler.
*
* This is a lightweight CORS implementation for web-standard
* Request/Response. It's optional — if your framework already handles CORS,
* pass `cors: false` or omit it.
*/
interface CopilotCorsConfig {
origin?: string | string[] | ((origin: string) => string | null);
credentials?: boolean;
allowMethods?: string[];
allowHeaders?: string[];
exposeHeaders?: string[];
maxAge?: number;
}
//#endregion
export { CopilotCorsConfig };
//# sourceMappingURL=fetch-cors.d.cts.map