Browse Source

Used HSTS MiddleWare for Http Strict Transport Security

pull/737/head
rafsanulhasan 6 years ago
parent
commit
fb8abbf3e0
3 changed files with 6 additions and 0 deletions
  1. +1
    -0
      src/Services/Identity/Identity.API/Startup.cs
  2. +1
    -0
      src/Web/WebMVC/Startup.cs
  3. +4
    -0
      src/Web/WebSPA/Startup.cs

+ 1
- 0
src/Services/Identity/Identity.API/Startup.cs View File

@ -119,6 +119,7 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
else
{
app.UseExceptionHandler("/Home/Error");
app.UseHsts();
}
app.UseHttpsRedirection();


+ 1
- 0
src/Web/WebMVC/Startup.cs View File

@ -68,6 +68,7 @@ namespace Microsoft.eShopOnContainers.WebMVC
else
{
app.UseExceptionHandler("/Error");
app.UseHsts();
}
var pathBase = Configuration["PATH_BASE"];


+ 4
- 0
src/Web/WebSPA/Startup.cs View File

@ -85,6 +85,10 @@ namespace eShopConContainers.WebSPA
{
app.UseDeveloperExceptionPage();
}
else
{
app.UseHsts();
}
app.UseHttpsRedirection();


Loading…
Cancel
Save