Skip to content

Commit

Permalink
fix(vercel-cors): update cors allowlist (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cali93 authored Oct 3, 2024
1 parent 30146fe commit 9257dd2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9257dd2

Please sign in to comment.