fix: Development 환경에서 UseHttpsRedirection 비활성화 (#24)
All checks were successful
SPMS_API/pipeline/head This commit looks good

This commit is contained in:
SEAN 2026-02-09 15:33:56 +09:00
parent 65b4207f94
commit 3125726e2c

View File

@ -73,7 +73,11 @@ else
Console.WriteLine("[Error] Web root folder not found!"); Console.WriteLine("[Error] Web root folder not found!");
} }
app.UseHttpsRedirection(); // ── 5. HTTPS 리다이렉션 (Nginx가 HTTPS 처리하므로 Production에서만) ──
if (!app.Environment.IsDevelopment())
{
app.UseHttpsRedirection();
}
app.UseRouting(); app.UseRouting();
// ── 10. JWT 인증 ── // ── 10. JWT 인증 ──