зеркало из https://github.com/dotnet/aspnetcore.git
Add comments regarding HSTS max age
This commit is contained in:
Родитель
d9e71527e8
Коммит
11c6ebea2e
|
@ -147,6 +147,7 @@ namespace Company.WebApplication1
|
|||
{
|
||||
app.UseExceptionHandler("/Error");
|
||||
#if (RequiresHttps)
|
||||
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
|
||||
app.UseHsts();
|
||||
}
|
||||
|
||||
|
|
|
@ -146,6 +146,7 @@ namespace Company.WebApplication1
|
|||
{
|
||||
app.UseExceptionHandler("/Home/Error");
|
||||
#if (RequiresHttps)
|
||||
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
|
||||
app.UseHsts();
|
||||
}
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ type Startup private () =
|
|||
else
|
||||
app.UseExceptionHandler("/Home/Error") |> ignore
|
||||
#if (!NoHttps)
|
||||
// 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
|
||||
|
|
|
@ -56,6 +56,7 @@ namespace Company.WebApplication1
|
|||
#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();
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ type Startup private () =
|
|||
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
|
||||
|
@ -37,4 +38,4 @@ type Startup private () =
|
|||
#endif
|
||||
app.UseMvc() |> ignore
|
||||
|
||||
member val Configuration : IConfiguration = null with get, set
|
||||
member val Configuration : IConfiguration = null with get, set
|
||||
|
|
|
@ -42,6 +42,7 @@ namespace Company.WebApplication1
|
|||
{
|
||||
app.UseExceptionHandler("/Error");
|
||||
#if (!NoHttps)
|
||||
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
|
||||
app.UseHsts();
|
||||
}
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@ namespace Company.WebApplication1
|
|||
{
|
||||
app.UseExceptionHandler("/Error");
|
||||
#if (!NoHttps)
|
||||
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
|
||||
app.UseHsts();
|
||||
}
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@ namespace Company.WebApplication1
|
|||
{
|
||||
app.UseExceptionHandler("/Error");
|
||||
#if (!NoHttps)
|
||||
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
|
||||
app.UseHsts();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче