fix: 루트 경로 접근 시 X-Service-Code 미들웨어 차단 해제 (#255)
- /v1로 시작하지 않는 경로(루트, 정적파일 등)는 ServiceCodeMiddleware SKIP - 프론트엔드 SPA(index.html) 정상 서빙 보장 Fixes #255
This commit is contained in:
parent
71172d738b
commit
30c40d449d
|
|
@ -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") ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user