Skip to content

Commit 08b7451

Browse files
committed
fix: public cors
1 parent 27a3ee8 commit 08b7451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/api/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const app = new Elysia()
4545
activeContext: null as ReturnType<typeof context.active> | null | undefined,
4646
startTime: 0,
4747
})
48+
.use(publicApi)
4849
.use(
4950
cors({
5051
credentials: true,
@@ -56,7 +57,6 @@ const app = new Elysia()
5657
],
5758
})
5859
)
59-
.use(publicApi)
6060
.use(health)
6161
.onBeforeHandle(function startTrace({ request, path, store }) {
6262
const method = request.method;

0 commit comments

Comments
 (0)