From 9257dd258ffb21cc87155a2b64ede1f6f314ce56 Mon Sep 17 00:00:00 2001 From: Cali <32299095+Cali93@users.noreply.github.com> Date: Thu, 3 Oct 2024 17:55:40 +0800 Subject: [PATCH] fix(vercel-cors): update cors allowlist (#32) --- src/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1a66d90..12b98c3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -64,7 +64,12 @@ app.set('trust proxy', 1) const allowedOrigins = isProd ? ['https://cloud.walletconnect.com', 'https://cloud.reown.com'] - : ['http://localhost', 'https://wc-cloud-staging.vercel.app', /\.?-walletconnect1\.vercel\.app$/] + : [ + 'http://localhost', + 'https://wc-cloud-staging.vercel.app', + /\.?-walletconnect1\.vercel\.app$/, + /\.?-reown-com\.vercel\.app$/ + ] const corsOptions: CorsOptions = { credentials: true,