refactor: enclose CORS policy configuration in a block statement
Build & Push Hospitality / build-and-push (push) Successful in 3m13s

This commit is contained in:
steinhelge
2025-11-26 15:47:06 +01:00
parent f5f56b0407
commit 63eb33a8c9
+2
View File
@@ -64,12 +64,14 @@ builder.Services.AddScoped<ITransactionService, TransactionService>();
// Add CORS
builder.Services.AddCors(options =>
{
options.AddPolicy("AllowFrontend", policy =>
{
policy.SetIsOriginAllowed(origin => true) // Allow any origin
.AllowAnyHeader()
.AllowAnyMethod();
});
});
var app = builder.Build();