Removed the HSTS middleware (#10998)
This commit is contained in:
parent
f10680a37a
commit
5918ac7e8c
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue