Update nuget packages

This commit is contained in:
2021-07-07 12:31:58 +02:00
parent 17047ac13e
commit 8cafcf3dc2
3 changed files with 7 additions and 7 deletions

View File

@@ -49,8 +49,8 @@
<PackageReference Include="GerstITS.System" Version="2021.6.17" />
<PackageReference Include="GerstITS.Validation" Version="2021.6.18" />
<PackageReference Include="GerstITS.Web" Version="2021.6.17" />
<PackageReference Include="GerstITS.Web.Api" Version="2021.7.1" />
<PackageReference Include="GerstITS.Web.Api.Swagger" Version="2021.7.2" />
<PackageReference Include="GerstITS.Web.Api" Version="2021.7.4" />
<PackageReference Include="GerstITS.Web.Api.Swagger" Version="2021.7.3" />
<PackageReference Include="GerstITS.Web.Rest" Version="2021.6.17" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.7">

View File

@@ -13,14 +13,14 @@ namespace GerstITS.Examples.Api
protected override void ConfigureApplication(IApplicationBuilder applicationBuilder, IWebHostEnvironment webHostEnvironment)
{
if (webHostEnvironment.IsProduction())
applicationBuilder.UseHstsOfServerConfiguration();
applicationBuilder.UsePreconfiguredHsts();
else
applicationBuilder.UseDeveloperExceptionPage()
.UseSwagger();
applicationBuilder.UseCorsOfServerConfiguration()
.UseForwardedHeadersOfServerConfiguration()
.UseHttpsRedirectionOfServerConfiguration()
applicationBuilder.UsePreconfiguredCors()
.UsePreconfiguredForwardedHeaders()
.UsePreconfiguredHttpsRedirection()
.UseAuthentication()
.UseAuthorization()
.UseRouting()