Removed the HSTS middleware (#10998)

This commit is contained in:
Artak 2019-06-07 15:27:16 -07:00 committed by GitHub
parent f10680a37a
commit 5918ac7e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View File

@ -54,11 +54,6 @@ namespace Company.WebApplication1
app.UseDeveloperExceptionPage();
}
#if (RequiresHttps)
else
{
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
#endif

View File

@ -29,9 +29,6 @@ type Startup private () =
if (env.IsDevelopment()) then
app.UseDeveloperExceptionPage() |> ignore
#if (!NoHttps)
else
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts() |> ignore
app.UseHttpsRedirection() |> ignore
#else