diff --git a/Endpoint/Program.cs b/Endpoint/Program.cs index dbf26e7..90d4844 100644 --- a/Endpoint/Program.cs +++ b/Endpoint/Program.cs @@ -64,6 +64,9 @@ public class Program policy.AllowAnyMethod(); policy.AllowAnyHeader(); policy.AllowCredentials(); +#if DEBUG + policy.WithOrigins("http://localhost:4200"); +#endif }); });