Skip to content

Commit 39587e6

Browse files
committed
feat: allow all origins via CORS middleware in hono-example
1 parent f5f27a8 commit 39587e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/hono-example/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { Hono } from 'hono';
2+
import { cors } from 'hono/cors';
23
import { logger } from 'hono/logger';
34
import manualRoutes from './routes/manual';
45
import engineRoutes from './routes/engine';
56

67
const app = new Hono();
78

9+
app.use('*', cors({ origin: '*' }));
810
app.use('*', logger());
911

1012
// Timing Middleware

0 commit comments

Comments
 (0)