fix: 루트 경로 X-Service-Code 미들웨어 차단 해제 (#255)
All checks were successful
SPMS_API/pipeline/head This commit looks good
All checks were successful
SPMS_API/pipeline/head This commit looks good
Reviewed-on: https://git.ipstein.myds.me/SPMS/SPMS_API/pulls/256
This commit is contained in:
commit
acfa988c43
|
|
@ -15,7 +15,9 @@ public class ServiceCodeMiddleware
|
||||||
var path = context.Request.Path;
|
var path = context.Request.Path;
|
||||||
|
|
||||||
// === SKIP: X-Service-Code 불필요 ===
|
// === 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/auth") ||
|
||||||
path.StartsWithSegments("/v1/in/account") ||
|
path.StartsWithSegments("/v1/in/account") ||
|
||||||
path.StartsWithSegments("/v1/in/public") ||
|
path.StartsWithSegments("/v1/in/public") ||
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user