From 24af2d1c3688e0168095d29be363574c26f41bd0 Mon Sep 17 00:00:00 2001 From: Vasilica Olariu Date: Tue, 21 Oct 2025 09:36:16 +0300 Subject: [PATCH] allow prod env in cors --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 08f9028..57a2450 100644 --- a/src/main.ts +++ b/src/main.ts @@ -30,7 +30,7 @@ async function bootstrap() { 'http://localhost:3000', /\.localhost:3000$/, ENV_CONFIG.TOPCODER_WALLET_URL, - /^https:\/\/[\w-]+\.topcoder-dev\.com$/, // allow wallet-v6 and other subdomains + /^https:\/\/[\w-]+\.topcoder(-dev)?\.com$/, // allow wallet-v6 and other subdomains ]; const corsConfig: cors.CorsOptions = {