diff --git a/GerstITS.Examples.Api/GerstITS.Examples.Api.csproj b/GerstITS.Examples.Api/GerstITS.Examples.Api.csproj index 72b2774..9fe095a 100644 --- a/GerstITS.Examples.Api/GerstITS.Examples.Api.csproj +++ b/GerstITS.Examples.Api/GerstITS.Examples.Api.csproj @@ -49,8 +49,8 @@ - - + + diff --git a/GerstITS.Examples.Api/Startup.cs b/GerstITS.Examples.Api/Startup.cs index f55f7eb..8ae7cd2 100644 --- a/GerstITS.Examples.Api/Startup.cs +++ b/GerstITS.Examples.Api/Startup.cs @@ -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() diff --git a/GerstITS.Examples.Logic/GerstITS.Examples.Logic.csproj b/GerstITS.Examples.Logic/GerstITS.Examples.Logic.csproj index 7761eef..49d4fbc 100644 --- a/GerstITS.Examples.Logic/GerstITS.Examples.Logic.csproj +++ b/GerstITS.Examples.Logic/GerstITS.Examples.Logic.csproj @@ -40,7 +40,7 @@ - +