Tweak vercel cors

This commit is contained in:
James Grugett 2022-07-06 23:41:57 -05:00
parent 09decefb1a
commit 070fd7eda7

View File

@ -36,7 +36,7 @@ export const CORS_ORIGIN_MANIFOLD = new RegExp(
) )
// Vercel deployments, used for testing. // Vercel deployments, used for testing.
export const CORS_ORIGIN_VERCEL = new RegExp( 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 // Any localhost server on any port
export const CORS_ORIGIN_LOCALHOST = /^http:\/\/localhost:\d+$/ export const CORS_ORIGIN_LOCALHOST = /^http:\/\/localhost:\d+$/