add httpredirection in program
parent
9dfe4e827a
commit
6866f57a8e
|
@ -6,8 +6,8 @@
|
|||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<InvariantGlobalization>true</InvariantGlobalization>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<AssemblyVersion>0.17.20.27</AssemblyVersion>
|
||||
<FileVersion>0.17.20.27</FileVersion>
|
||||
<AssemblyVersion>0.17.20.28</AssemblyVersion>
|
||||
<FileVersion>0.17.20.28</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -94,6 +94,7 @@ builder.Host.ConfigureContainer<ContainerBuilder>(builder =>
|
|||
|
||||
var app = builder.Build();
|
||||
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
|
@ -101,6 +102,7 @@ if (app.Environment.IsDevelopment())
|
|||
//app.UseSwaggerUI();
|
||||
}
|
||||
app.UseCors("CorsPolicy");
|
||||
app.UseHttpsRedirection();
|
||||
|
||||
app.UseCustomSwagger(siteSetting.BaseUrl);
|
||||
|
||||
|
|
Loading…
Reference in New Issue