diff --git a/Endpoint/Program.cs b/Endpoint/Program.cs index 4ce387a..b643ee8 100644 --- a/Endpoint/Program.cs +++ b/Endpoint/Program.cs @@ -76,9 +76,7 @@ public class Program policy.AllowAnyMethod(); policy.AllowAnyHeader(); policy.AllowCredentials(); -#if DEBUG - policy.WithOrigins("http://localhost:4200"); -#endif + policy.SetIsOriginAllowed(_ => true); }); });