From 3125726e2ce4df6c98daf0658900cee28a176eea Mon Sep 17 00:00:00 2001 From: SEAN Date: Mon, 9 Feb 2026 15:33:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Development=20=ED=99=98=EA=B2=BD?= =?UTF-8?q?=EC=97=90=EC=84=9C=20UseHttpsRedirection=20=EB=B9=84=ED=99=9C?= =?UTF-8?q?=EC=84=B1=ED=99=94=20(#24)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SPMS.API/Program.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 인증 ──