From 8250957b8599621edba3d4b4ba6fcc9bfdac476d Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Wed, 18 Dec 2024 07:30:47 +0300 Subject: [PATCH] refactor: use another origin --- Endpoint/Program.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); }); });