Skip to content

Commit 1e0730a

Browse files
authored
Merge pull request #89 from topcoder-platform/cors
[HOTFIX] allow prod env in cors
2 parents fea082a + 24af2d1 commit 1e0730a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function bootstrap() {
3030
'http://localhost:3000',
3131
/\.localhost:3000$/,
3232
ENV_CONFIG.TOPCODER_WALLET_URL,
33-
/^https:\/\/[\w-]+\.topcoder-dev\.com$/, // allow wallet-v6 and other subdomains
33+
/^https:\/\/[\w-]+\.topcoder(-dev)?\.com$/, // allow wallet-v6 and other subdomains
3434
];
3535

3636
const corsConfig: cors.CorsOptions = {

0 commit comments

Comments
 (0)