From 8d55f6b30dc78c38d1f0aa3090eb8b17dfb716d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Fri, 12 Apr 2024 20:43:01 +0200 Subject: [PATCH] fix wild card origin --- apps/api/src/utils/auth.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/src/utils/auth.ts b/apps/api/src/utils/auth.ts index 1a0df274..58f135b0 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) {