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.AllowAnyHeader();
policy.AllowCredentials();
#if DEBUG
policy.WithOrigins("http://localhost:4200");
#endif
policy.SetIsOriginAllowed(_ => true);
});
});