fix: increase max request body size to prevent 400 Bad Request errors
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m45s

- Set MaxRequestBodySize to 100MB for large file uploads
- Resolves 'Request Header Or Cookie Too Large' errors
- Applies to Kestrel server in both development and production

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-06-28 16:20:57 +09:00
parent 2bde490e9e
commit db2af15a07
+6
View File
@@ -17,6 +17,12 @@ using TaxBaik.Web.Services;
var builder = WebApplication.CreateBuilder(args);
var isProduction = builder.Environment.IsProduction();
// HTTP 요청 헤더/쿠키 크기 제한 증가 (400 Bad Request 해결)
builder.WebHost.ConfigureKestrel(options =>
{
options.Limits.MaxRequestBodySize = 100 * 1024 * 1024; // 100MB
});
// Serilog 설정
builder.Host.UseSerilog((context, config) =>
{