Skip to content

Commit

Permalink
fix: wildcard cors origin
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Oct 22, 2023
1 parent c80b8bf commit 9505d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if (process.env.NODE_ENV === "development") {
cookieParser(),
compress(),
json({ limit: "500kb" }),
cors({ origin: allowedCorsOrigins, credentials: true }),
cors({ origin: parsedCORSOrigin === "*" ? "*" : allowedCorsOrigins, credentials: true }),
Sentry.Handlers.requestHandler({
request: true,
serverName: true,
Expand Down

0 comments on commit 9505d87

Please sign in to comment.