[Bug] 루트 경로 접근 시 X-Service-Code 에러 발생 #255
Labels
No Label
Priority
High
Priority
Low
Priority
Medium
Priority
Non
Priority
Urgent
Status
Available
Status
Done
Status
In Progress
Type
Bug
Type
Chore
Type
Design
Type
Documentation
Type
Feature
Type
Improvement
Type
Refactor
Type
Research
Type
Task
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SPMS/SPMS_API#255
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
증상
브라우저에서 루트(
/)로 접근 시{"result":false,"code":"101","msg":"X-Service-Code 헤더가 필요합니다."}에러 반환.프론트엔드 index.html이 정상 서빙되어야 함.
원인
ServiceCodeMiddleware의 SKIP 조건에 루트 경로 및 비-API 경로가 포함되지 않음.MapFallbackToFile("index.html")로 라우팅되는 요청이 미들웨어에서 차단됨.수정
/v1로 시작하지 않는 경로는 모두 미들웨어 SKIP 처리