Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

fix wild card origin

Carl-Gerhard Lindesvärd8d55f6b30dc7
diff --git a/apps/api/src/utils/auth.ts b/apps/api/src/utils/auth.ts
index 1a0df2741..58f135b08 100644
--- a/apps/api/src/utils/auth.ts
+++ b/apps/api/src/utils/auth.ts
@@ -58,7 +58,9 @@ export async function validateSdkRequest(
return client.projectId;
}
- // Check if cors is a wildcard
+ if (client.cors === '*' && origin) {
+ return client.projectId;
+ }
}
if (client.secret && clientSecret) {