Fix: FormularioAviso Bloqueo Edit Tel. - Limit Request Body 100Mb
This commit is contained in:
@@ -20,7 +20,11 @@ var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Configuration.AddEnvironmentVariables();
|
||||
|
||||
// 🔒 KESTREL HARDENING
|
||||
builder.WebHost.ConfigureKestrel(options => options.AddServerHeader = false);
|
||||
builder.WebHost.ConfigureKestrel(options =>
|
||||
{
|
||||
options.AddServerHeader = false;
|
||||
options.Limits.MaxRequestBodySize = 104857600; // 100 MB
|
||||
});
|
||||
|
||||
// LOGGING
|
||||
builder.Logging.ClearProviders();
|
||||
|
||||
Reference in New Issue
Block a user