From 39109158a581090db2ae67b7e0a29cee865dd406 Mon Sep 17 00:00:00 2001 From: Joe Furfaro Date: Sun, 11 Jan 2026 23:20:08 -0800 Subject: [PATCH 1/2] added more CORS dev domains, switched email template to 2026 --- lib/index.ts | 6 +++--- lib/services/email.ts | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/index.ts b/lib/index.ts index 5e9ea96..f0a1e78 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -103,8 +103,8 @@ app.use( if( corsEnv !== 'production' && ( - /^https?:\/\/localhost(:\d*)?$/.test(origin) || - /^https:\/\/.+\.local\.mrstache\.io$/.test(origin) + /^https:\/\/(.+\.)?localhost(:\d*)?$/.test(origin) || + /^https:\/\/.+\.local\.mrstache\.io(:\d*)?$/.test(origin) ) ) { return origin; @@ -121,7 +121,7 @@ app.use( const origin = ctx.get('origin'); // Accept dev origins only in non-production environments - if(corsEnv !== 'production' && /^https?:\/\/localhost(:\d*)?$/.test(origin)) { + if(corsEnv !== 'production' && /^https:\/\/(.+\.)?localhost(:\d*)?$/.test(origin)) { return true; } diff --git a/lib/services/email.ts b/lib/services/email.ts index d3867e0..2f93392 100644 --- a/lib/services/email.ts +++ b/lib/services/email.ts @@ -54,14 +54,14 @@ export function sendReceipt(guestFirstName, guestLastName, guestEmail, confirmat mailgun.messages().send({ from: 'Mustache Bash Tickets ', to: guestFirstName + ' ' + guestLastName + ' <' + guestEmail + '> ', - subject: 'Your Tickets & Confirmation For San Francisco Mustache Bash 2025', + subject: 'Your Tickets & Confirmation For Mustache Bash 2026', html: ` - The Mustache Bash SF 2025 Confirmation + The Mustache Bash 2026 Confirmation