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();
|
||||
|
||||
@@ -3,7 +3,7 @@ server {
|
||||
server_name localhost;
|
||||
|
||||
# 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)
|
||||
location = /sitemap.xml {
|
||||
|
||||
@@ -1376,7 +1376,7 @@ export default function FormularioAviso({
|
||||
<input
|
||||
type="text"
|
||||
value={contactData.phone}
|
||||
disabled={isAdmin}
|
||||
disabled
|
||||
onChange={(e) => {
|
||||
const val = e.target.value;
|
||||
setContactData({
|
||||
@@ -1390,7 +1390,7 @@ export default function FormularioAviso({
|
||||
placeholder={
|
||||
isAdmin
|
||||
? "Selecciona o crea un vendedor arriba"
|
||||
: "+54 9 221 ..."
|
||||
: "Modificable en tu perfil"
|
||||
}
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user