add kestrel limit bodySize

This commit is contained in:
MahanCh
2025-04-29 18:23:19 +03:30
parent 4a0153e1e8
commit dd922a72d5

View File

@@ -19,6 +19,12 @@ using WorkFlow.Infrastructure.Config;
using _0_Framework.Application.UID;
var builder = WebApplication.CreateBuilder(args);
builder.WebHost.ConfigureKestrel(serverOptions =>
{
serverOptions.Limits.MaxRequestBodySize = long.MaxValue;
});
builder.Services.AddRazorPages()
.AddRazorRuntimeCompilation();
//Register Services