Skip to content

Commit a249ffb

Browse files
committed
chore: Fix cors issue due to an async global hook
1 parent 03a301a commit a249ffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/cors-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createApp } from "@aklinker1/zeta";
22

33
export const corsPlugin = createApp()
4-
.onGlobalRequest(async ({ method, set }) => {
4+
.onGlobalRequest(({ method, set }) => {
55
set.headers["Access-Control-Allow-Origin"] = "*";
66
set.headers["Access-Control-Allow-Methods"] = "GET, POST, OPTIONS";
77
set.headers["Access-Control-Allow-Headers"] = "*";

0 commit comments

Comments
 (0)