fix wild card origin

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-04-12 20:43:01 +02:00
parent bface463e2
commit 8d55f6b30d

View File

@@ -58,7 +58,9 @@ export async function validateSdkRequest(
return client.projectId; return client.projectId;
} }
// Check if cors is a wildcard if (client.cors === '*' && origin) {
return client.projectId;
}
} }
if (client.secret && clientSecret) { if (client.secret && clientSecret) {