From 1eca0ede91cf8de6927a1ca461f628472f592dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=ED=83=9C=ED=9B=88?= Date: Tue, 23 Jun 2026 17:15:48 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20allowedHosts=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=B0=8F=20=EB=AA=A8=EB=B0=94=EC=9D=BC=20?= =?UTF-8?q?QR=20=EC=BD=94=EB=93=9C=20=EC=8A=A4=EC=BA=94=20=EC=8B=9C=20?= =?UTF-8?q?=EC=A4=84=EB=B0=94=EA=BF=88/=EA=B3=B5=EB=B0=B1=20=EC=A0=95?= =?UTF-8?q?=EA=B7=9C=EC=8B=9D=20=EC=A0=95=EC=A0=9C=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mobile-main.ts | 5 ++++- vite.config.ts | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mobile-main.ts b/src/mobile-main.ts index 049a27a..51cfdb6 100644 --- a/src/mobile-main.ts +++ b/src/mobile-main.ts @@ -79,7 +79,10 @@ document.addEventListener('DOMContentLoaded', () => { } } - function processScannedCode(code: string) { + function processScannedCode(rawCode: string) { + // QR 코드 인쇄 폼 등으로 인한 개행 문자(\r, \n) 및 모든 공백 문자(\s)를 제거 + const code = rawCode.replace(/[\r\n]/g, '').replace(/\s+/g, '').trim(); + // 1. Check if the code is a physical location code if (code.startsWith('LOC-')) { sessionStorage.setItem(SESSION_LOC_KEY, code); diff --git a/vite.config.ts b/vite.config.ts index 49a0185..af98bee 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,6 +9,7 @@ export default defineConfig({ server: { port: 8080, host: true, // Listen on all local IPs + allowedHosts: true, proxy: { '/api': { target: proxyTarget,