Activate CORS
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 3m7s

This commit is contained in:
Leandro Hernan Rojas 2025-04-29 19:05:50 -03:00
parent 050cf9af0f
commit 33b52a84df

View File

@ -156,16 +156,15 @@ builder.Services.AddCors(options =>
/*
Version para despliegue
*/
// policy
// .WithOrigins("http://dev.biodec.saludlab.com.ar", "http://phroncareUI:80", "http://192.168.10.110:9002")
// .AllowAnyMethod()
// .AllowAnyHeader()
// .AllowCredentials();
policy
.WithOrigins("http://dev.biodec.saludlab.com.ar", "http://phroncareUI:80", "http://192.168.10.110:9002")
.AllowAnyMethod()
.AllowAnyHeader()
.AllowCredentials();
/*
Version para desarrollo
*/
policy.WithOrigins("*").AllowAnyHeader().AllowAnyMethod();
//policy.WithOrigins("*").AllowAnyHeader().AllowAnyMethod();
});
});
#endregion