Skip to content

Commit

Permalink
fix(vercel): enable multiplayer support for preview builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn committed Dec 17, 2024
1 parent b7c5d16 commit bbf07fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-etc/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit bbf07fa

Please sign in to comment.