allow retrying seed generations that fail

This commit is contained in:
2025-05-15 18:08:09 -05:00
parent 82bfff0677
commit 06afab3a10
4 changed files with 65 additions and 30 deletions

View File

@@ -12,6 +12,7 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Serilog;
using System.Linq;
using System.Text.Json;
using System.Text.Json.Serialization;
@@ -43,9 +44,7 @@
builder.Services.AddCors(options => {
options.AddPolicy("AllowDomains", policy => {
foreach (var domain in settings.AllowedCors) {
policy.WithOrigins(domain).AllowAnyHeader();
}
policy.WithOrigins(settings.AllowedCors.ToArray()).AllowAnyMethod().AllowAnyHeader();
});
});