From bbf07fa2503dc8fbe6b93cb0e97d85a1fe34064a Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Mon, 16 Dec 2024 20:53:51 -0600 Subject: [PATCH] fix(vercel): enable multiplayer support for preview builds --- api-etc/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-etc/utils.js b/api-etc/utils.js index 54085afe..58ba911a 100644 --- a/api-etc/utils.js +++ b/api-etc/utils.js @@ -56,7 +56,7 @@ export const allowCors = fn => async (req, res) => { if ( ACCEPTED_ORIGINS.has(origin) || - origin.match(/https:\/\/farmhand-.*-jeremyckahn.vercel.app/) + origin.match(/https:\/\/farmhand-.*-jeremy-kahns-projects.*.vercel.app/) ) { res.setHeader('Access-Control-Allow-Origin', origin) }