diff --git a/apps/api/src/server.ts b/apps/api/src/server.ts index 72387f2dd..4c6fa4159 100644 --- a/apps/api/src/server.ts +++ b/apps/api/src/server.ts @@ -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,