We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03a301a commit a249ffbCopy full SHA for a249ffb
src/plugins/cors-plugin.ts
@@ -1,7 +1,7 @@
1
import { createApp } from "@aklinker1/zeta";
2
3
export const corsPlugin = createApp()
4
- .onGlobalRequest(async ({ method, set }) => {
+ .onGlobalRequest(({ method, set }) => {
5
set.headers["Access-Control-Allow-Origin"] = "*";
6
set.headers["Access-Control-Allow-Methods"] = "GET, POST, OPTIONS";
7
set.headers["Access-Control-Allow-Headers"] = "*";
0 commit comments