refactor: use another origin

This commit is contained in:
2024-12-18 07:30:47 +03:00
parent 39208037f0
commit 8250957b85

View File

@ -76,9 +76,7 @@ public class Program
policy.AllowAnyMethod(); policy.AllowAnyMethod();
policy.AllowAnyHeader(); policy.AllowAnyHeader();
policy.AllowCredentials(); policy.AllowCredentials();
#if DEBUG policy.SetIsOriginAllowed(_ => true);
policy.WithOrigins("http://localhost:4200");
#endif
}); });
}); });