This commit is contained in:
parent
9762e793cb
commit
319aed04f7
@ -125,6 +125,13 @@ if (app.Environment.IsDevelopment())
|
||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "TCM_API");
|
||||
});
|
||||
}
|
||||
|
||||
app.UseSwagger();
|
||||
//app.UseSwaggerUI();
|
||||
app.UseSwaggerUI(c =>
|
||||
{
|
||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "TCM_API");
|
||||
});
|
||||
//在 ASP.NET Core 中啟用 CORS (跨原始來源要求)
|
||||
// Shows UseCors with CorsPolicyBuilder.
|
||||
app.UseCors(builder =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user