Test https redirection
All checks were successful
Optimized Build and Deploy / remote-build-and-deploy (push) Successful in 6m23s
All checks were successful
Optimized Build and Deploy / remote-build-and-deploy (push) Successful in 6m23s
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user