fix Program.cs
This commit is contained in:
@@ -14,7 +14,9 @@ builder.Services
|
|||||||
{
|
{
|
||||||
options.AddDefaultPolicy( policy =>
|
options.AddDefaultPolicy( policy =>
|
||||||
{
|
{
|
||||||
policy.AllowAnyOrigin();
|
policy.AllowAnyHeader();
|
||||||
|
policy.WithMethods("GET", "POST", "PUT", "DELETE", "PATCH");
|
||||||
|
policy.WithOrigins("http://localhost:4200");
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.SwaggerDocument(options =>
|
.SwaggerDocument(options =>
|
||||||
|
|||||||
Reference in New Issue
Block a user