Skip to content

Commit

Permalink
fix(klesia): add wildcard cors setting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnk committed Sep 3, 2024
1 parent 88f06c7 commit 14e740e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/klesia/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { OpenAPIHono, createRoute } from "@hono/zod-openapi";
import { PublicKeySchema } from "@mina-js/shared";
import { apiReference } from "@scalar/hono-api-reference";
import { rateLimiter } from "hono-rate-limiter";
import { cors } from 'hono/cors'
import { logger } from "hono/logger";
import { nanoid } from "nanoid";
import { match } from "ts-pattern";
Expand All @@ -27,6 +28,7 @@ api.use(
limit: 10,
}),
);
api.use('/api', cors({ origin: '*' }))

api.doc("/api/openapi", {
openapi: "3.0.0",
Expand Down

0 comments on commit 14e740e

Please sign in to comment.