From 8ce48b3a46c65b51238a04238228d86568680ac2 Mon Sep 17 00:00:00 2001 From: dmolinari Date: Wed, 3 Sep 2025 18:56:01 -0300 Subject: [PATCH] Fix Cors --- Elecciones-Web/src/Elecciones.Api/Program.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Elecciones-Web/src/Elecciones.Api/Program.cs b/Elecciones-Web/src/Elecciones.Api/Program.cs index 70af2f8..3eac39f 100644 --- a/Elecciones-Web/src/Elecciones.Api/Program.cs +++ b/Elecciones-Web/src/Elecciones.Api/Program.cs @@ -41,10 +41,11 @@ builder.Services.AddCors(options => policy => { policy.WithOrigins( - "http://localhost:5173", // Para widgets + "http://localhost:5173", "http://localhost:5174", + "http://192.168.5.128:8700", "https://www.eldia.com", - "https://extras.eldia.com" // Para admin + "https://extras.eldia.com" ) .AllowAnyHeader() .AllowAnyMethod();