Skip to content

Commit 8096d77

Browse files
committed
fix: Fix non-working cors short-circuit
1 parent cbad3ab commit 8096d77

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
@@ -7,7 +7,7 @@ export const corsPlugin = createApp()
77
set.headers["Access-Control-Allow-Headers"] = "*";
88
if (method === "OPTIONS") {
99
set.status = 204;
10-
return new Response(undefined, set);
10+
return new Response("", set);
1111
}
1212
})
1313
.export();

0 commit comments

Comments
 (0)