fix: multiple vulnerabilities

This commit is contained in:
2026-06-17 21:43:41 -04:00
parent 6c810b07b7
commit 6a7b8653dc
15 changed files with 83 additions and 27 deletions
+3 -1
View File
@@ -276,7 +276,9 @@ namespace SharpbinV3.Server
builder.Services.AddCors(o =>
{
o.AddDefaultPolicy(p => p.WithOrigins("http://localhost:5173").AllowAnyHeader().AllowAnyMethod());
var allowedOrigins =
builder.Configuration.GetSection(nameof(AppSettings.AllowedCorsOrigins)).Get<string[]>() ?? ["http://localhost:5173"];
o.AddDefaultPolicy(p => p.WithOrigins(allowedOrigins).AllowAnyHeader().AllowAnyMethod());
});
builder