From 1afcff76f4b0f6ed77def752e2b013e88a8db13b Mon Sep 17 00:00:00 2001 From: kaffa Date: Fri, 27 Mar 2026 16:16:23 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20anvil.it.com=20=E2=86=92=20inouter.com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/api/contact.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/api/contact.ts b/src/routes/api/contact.ts index b9eafee..a479d70 100644 --- a/src/routes/api/contact.ts +++ b/src/routes/api/contact.ts @@ -19,7 +19,7 @@ const ContactFormBodySchema = z.object({ * CORS 헤더 생성 */ function getCorsHeaders(env: Env): Record { - const allowedOrigin = env.HOSTING_SITE_URL || 'https://hosting.anvil.it.com'; + const allowedOrigin = env.HOSTING_SITE_URL || 'https://hosting.inouter.com'; return { 'Access-Control-Allow-Origin': allowedOrigin, 'Access-Control-Allow-Methods': 'POST, OPTIONS', @@ -37,7 +37,7 @@ function getCorsHeaders(env: Env): Record { async function handleContactForm(request: Request, env: Env): Promise { // CORS 헤더 생성 const corsHeaders = getCorsHeaders(env); - const allowedOrigin = env.HOSTING_SITE_URL || 'https://hosting.anvil.it.com'; + const allowedOrigin = env.HOSTING_SITE_URL || 'https://hosting.inouter.com'; // Origin 헤더 검증 (curl 우회 방지) const origin = request.headers.get('Origin'); @@ -119,7 +119,7 @@ export const contactRouter = new Hono<{ Bindings: Env }>(); // CORS middleware for /contact endpoint contactRouter.use('/*', cors({ origin: (origin, c) => { - const allowedOrigin = c.env.HOSTING_SITE_URL || 'https://hosting.anvil.it.com'; + const allowedOrigin = c.env.HOSTING_SITE_URL || 'https://hosting.inouter.com'; return origin === allowedOrigin ? origin : null; }, allowMethods: ['POST', 'OPTIONS'],