Fix: FormularioAviso Bloqueo Edit Tel. - Limit Request Body 100Mb

This commit is contained in:
2026-04-21 10:25:29 -03:00
parent d8d7e5c2eb
commit 6c53f7fa2e
3 changed files with 8 additions and 4 deletions

View File

@@ -20,7 +20,11 @@ var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddEnvironmentVariables(); builder.Configuration.AddEnvironmentVariables();
// 🔒 KESTREL HARDENING // 🔒 KESTREL HARDENING
builder.WebHost.ConfigureKestrel(options => options.AddServerHeader = false); builder.WebHost.ConfigureKestrel(options =>
{
options.AddServerHeader = false;
options.Limits.MaxRequestBodySize = 104857600; // 100 MB
});
// LOGGING // LOGGING
builder.Logging.ClearProviders(); builder.Logging.ClearProviders();

View File

@@ -3,7 +3,7 @@ server {
server_name localhost; server_name localhost;
# Seguridad: Limitar tamaño de subida para prevenir DoS # Seguridad: Limitar tamaño de subida para prevenir DoS
client_max_body_size 20M; client_max_body_size 100M;
# Sitemap dinámico (generado por backend en volumen compartido) # Sitemap dinámico (generado por backend en volumen compartido)
location = /sitemap.xml { location = /sitemap.xml {

View File

@@ -1376,7 +1376,7 @@ export default function FormularioAviso({
<input <input
type="text" type="text"
value={contactData.phone} value={contactData.phone}
disabled={isAdmin} disabled
onChange={(e) => { onChange={(e) => {
const val = e.target.value; const val = e.target.value;
setContactData({ setContactData({
@@ -1390,7 +1390,7 @@ export default function FormularioAviso({
placeholder={ placeholder={
isAdmin isAdmin
? "Selecciona o crea un vendedor arriba" ? "Selecciona o crea un vendedor arriba"
: "+54 9 221 ..." : "Modificable en tu perfil"
} }
/> />