diff --git a/SPMS.API/Program.cs b/SPMS.API/Program.cs index 17bab8d..8f23235 100644 --- a/SPMS.API/Program.cs +++ b/SPMS.API/Program.cs @@ -73,7 +73,11 @@ else Console.WriteLine("[Error] Web root folder not found!"); } -app.UseHttpsRedirection(); +// ── 5. HTTPS 리다이렉션 (Nginx가 HTTPS 처리하므로 Production에서만) ── +if (!app.Environment.IsDevelopment()) +{ + app.UseHttpsRedirection(); +} app.UseRouting(); // ── 10. JWT 인증 ──