Test https redirection
All checks were successful
Optimized Build and Deploy / remote-build-and-deploy (push) Successful in 6m23s

This commit is contained in:
2025-06-25 19:22:26 -03:00
parent 6a1d935a61
commit ab232c481d

View File

@@ -153,7 +153,7 @@ builder.Services.AddCors(options =>
{ {
policy.WithOrigins( policy.WithOrigins(
"http://localhost:5173", // Para desarrollo local "http://localhost:5173", // Para desarrollo local
"http://192.168.4.128:8080" // Para producción "https://gestion.eldiaservicios.com" // Para producción
) )
.AllowAnyHeader() .AllowAnyHeader()
.AllowAnyMethod(); .AllowAnyMethod();
@@ -232,7 +232,7 @@ if (app.Environment.IsDevelopment())
// ¡¡¡NO USAR UseHttpsRedirection si la API corre en HTTP!!! // ¡¡¡NO USAR UseHttpsRedirection si la API corre en HTTP!!!
// Comenta o elimina la siguiente línea si SÓLO usas http://localhost:5183 // Comenta o elimina la siguiente línea si SÓLO usas http://localhost:5183
// app.UseHttpsRedirection(); app.UseHttpsRedirection();
app.UseCors(MyAllowSpecificOrigins); app.UseCors(MyAllowSpecificOrigins);