Used HSTS MiddleWare for Http Strict Transport Security
This commit is contained in:
parent
0d63172dc8
commit
fb8abbf3e0
@ -119,6 +119,7 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
|
||||
else
|
||||
{
|
||||
app.UseExceptionHandler("/Home/Error");
|
||||
app.UseHsts();
|
||||
}
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
|
@ -68,6 +68,7 @@ namespace Microsoft.eShopOnContainers.WebMVC
|
||||
else
|
||||
{
|
||||
app.UseExceptionHandler("/Error");
|
||||
app.UseHsts();
|
||||
}
|
||||
|
||||
var pathBase = Configuration["PATH_BASE"];
|
||||
|
@ -85,6 +85,10 @@ namespace eShopConContainers.WebSPA
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
}
|
||||
else
|
||||
{
|
||||
app.UseHsts();
|
||||
}
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user