From 8c686029cb881a89ba4ff3081e073c976bfd5ce4 Mon Sep 17 00:00:00 2001 From: Ramnique Singh <30795890+ramnique@users.noreply.github.com> Date: Wed, 17 Dec 2025 11:57:45 +0530 Subject: [PATCH] enable cors --- apps/cli/src/server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/cli/src/server.ts b/apps/cli/src/server.ts index e7ff4a53..ac4ee333 100644 --- a/apps/cli/src/server.ts +++ b/apps/cli/src/server.ts @@ -14,6 +14,7 @@ import { Agent } from "./agents/agents.js"; import { AskHumanResponsePayload, authorizePermission, createMessage, createRun, replyToHumanInputRequest, Run, stop, ToolPermissionAuthorizePayload } from './runs/runs.js'; import { IRunsRepo, CreateRunOptions, ListRunsResponse } from './runs/repo.js'; import { IBus } from './application/lib/bus.js'; +import { cors } from 'hono/cors'; let id = 0; @@ -638,6 +639,7 @@ const routes = new Hono() ; const app = new Hono() + .use("/*", cors()) .route("/", routes) .get( "/openapi.json",