From 6d3aff48361eed1d1a88c16eab287496a692cd2b Mon Sep 17 00:00:00 2001 From: James Grugett Date: Wed, 6 Jul 2022 23:48:58 -0500 Subject: [PATCH] Try another regexp for vercel cors --- common/envs/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/envs/constants.ts b/common/envs/constants.ts index 4580afc8..7092d711 100644 --- a/common/envs/constants.ts +++ b/common/envs/constants.ts @@ -36,7 +36,7 @@ export const CORS_ORIGIN_MANIFOLD = new RegExp( ) // Vercel deployments, used for testing. export const CORS_ORIGIN_VERCEL = new RegExp( - '^https?://(?:[a-zA-Z0-9\\-]+)*' + escapeRegExp('mantic.vercel.app') + '$' + '^https?://[a-zA-Z0-9\\-]+' + escapeRegExp('mantic.vercel.app') + '$' ) // Any localhost server on any port export const CORS_ORIGIN_LOCALHOST = /^http:\/\/localhost:\d+$/