From 30c40d449df2ff97103d9e75692dd56434ecc389 Mon Sep 17 00:00:00 2001 From: SEAN Date: Thu, 26 Feb 2026 15:03:53 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A3=A8=ED=8A=B8=20=EA=B2=BD=EB=A1=9C?= =?UTF-8?q?=20=EC=A0=91=EA=B7=BC=20=EC=8B=9C=20X-Service-Code=20=EB=AF=B8?= =?UTF-8?q?=EB=93=A4=EC=9B=A8=EC=96=B4=20=EC=B0=A8=EB=8B=A8=20=ED=95=B4?= =?UTF-8?q?=EC=A0=9C=20(#255)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /v1로 시작하지 않는 경로(루트, 정적파일 등)는 ServiceCodeMiddleware SKIP - 프론트엔드 SPA(index.html) 정상 서빙 보장 Fixes #255 --- SPMS.API/Middlewares/ServiceCodeMiddleware.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SPMS.API/Middlewares/ServiceCodeMiddleware.cs b/SPMS.API/Middlewares/ServiceCodeMiddleware.cs index f582ba1..2fc5313 100644 --- a/SPMS.API/Middlewares/ServiceCodeMiddleware.cs +++ b/SPMS.API/Middlewares/ServiceCodeMiddleware.cs @@ -15,7 +15,9 @@ public class ServiceCodeMiddleware var path = context.Request.Path; // === SKIP: X-Service-Code 불필요 === - if (path.StartsWithSegments("/v1/out") || + if (path == "/" || + !path.StartsWithSegments("/v1") || + path.StartsWithSegments("/v1/out") || path.StartsWithSegments("/v1/in/auth") || path.StartsWithSegments("/v1/in/account") || path.StartsWithSegments("/v1/in/public") ||