Skip to content

Commit 75f4383

Browse files
committed
feat: add allowedHeaders to CORS in example
1 parent f840666 commit 75f4383

File tree

1 file changed

+7
-0
lines changed
  • examples/minimal-convex/convex

1 file changed

+7
-0
lines changed

examples/minimal-convex/convex/http.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ const http = httpRouter();
99

1010
const cors = corsRouter(http, {
1111
allowedOrigins: ["http://localhost:3000"],
12+
allowedHeaders: [
13+
"x-uploadthing-package",
14+
"traceparent",
15+
"x-uploadthing-version",
16+
"b3",
17+
"content-type",
18+
],
1219
});
1320

1421
createRouteHandler({

0 commit comments

Comments
 (0)