Removed the HSTS middleware (#10998)
This commit is contained in:
parent
f10680a37a
commit
5918ac7e8c
|
|
@ -54,11 +54,6 @@ namespace Company.WebApplication1
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
}
|
}
|
||||||
#if (RequiresHttps)
|
#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();
|
app.UseHttpsRedirection();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,6 @@ type Startup private () =
|
||||||
if (env.IsDevelopment()) then
|
if (env.IsDevelopment()) then
|
||||||
app.UseDeveloperExceptionPage() |> ignore
|
app.UseDeveloperExceptionPage() |> ignore
|
||||||
#if (!NoHttps)
|
#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
|
app.UseHttpsRedirection() |> ignore
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue