Skip to content

Commit

Permalink
chore: add cors header
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Dec 17, 2024
1 parent 6442573 commit aa76124
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Hono } from "hono";
import { cors } from "hono/cors";
import { serveStatic } from "hono/deno";
import { secureHeaders } from "hono/secure-headers";
//import { sentry } from "npm:@hono/sentry";
Expand All @@ -22,6 +23,7 @@ const hono = new Hono();

hono.use(loggerMiddleware());
hono.use(secureHeaders());
hono.use(cors());
/*if (SENTRY_DSN) {
hono.use("*", sentry({ dsn: SENTRY_DSN }));
}*/
Expand Down

0 comments on commit aa76124

Please sign in to comment.