From 33b52a84dffc753190e7bf7050540fb696cf1059 Mon Sep 17 00:00:00 2001 From: Leandro Hernan Rojas Date: Tue, 29 Apr 2025 19:05:50 -0300 Subject: [PATCH] Activate CORS --- phronCare.API/Program.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/phronCare.API/Program.cs b/phronCare.API/Program.cs index 347b483..acf3924 100644 --- a/phronCare.API/Program.cs +++ b/phronCare.API/Program.cs @@ -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