fix Program.cs

This commit is contained in:
2025-11-18 11:42:36 +01:00
parent 4821a9139e
commit 673cec682f
+3 -1
View File
@@ -14,7 +14,9 @@ builder.Services
{
options.AddDefaultPolicy( policy =>
{
policy.AllowAnyOrigin();
policy.AllowAnyHeader();
policy.WithMethods("GET", "POST", "PUT", "DELETE", "PATCH");
policy.WithOrigins("http://localhost:4200");
});
})
.SwaggerDocument(options =>