Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 9257dd2

Browse files
authored
fix(vercel-cors): update cors allowlist (#32)
1 parent 30146fe commit 9257dd2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,12 @@ app.set('trust proxy', 1)
6464

6565
const allowedOrigins = isProd
6666
? ['https://cloud.walletconnect.com', 'https://cloud.reown.com']
67-
: ['http://localhost', 'https://wc-cloud-staging.vercel.app', /\.?-walletconnect1\.vercel\.app$/]
67+
: [
68+
'http://localhost',
69+
'https://wc-cloud-staging.vercel.app',
70+
/\.?-walletconnect1\.vercel\.app$/,
71+
/\.?-reown-com\.vercel\.app$/
72+
]
6873

6974
const corsOptions: CorsOptions = {
7075
credentials: true,

0 commit comments

Comments
 (0)