This website works better with JavaScript.
Home
Explore
Help
Sign In
ayan.poddar
/
eShopOnContainers
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
19
Wiki
Activity
Browse Source
Used HSTS MiddleWare for Http Strict Transport Security
pull/737/head
rafsanulhasan
6 years ago
parent
0d63172dc8
commit
fb8abbf3e0
3 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
src/Services/Identity/Identity.API/Startup.cs
+1
-0
src/Web/WebMVC/Startup.cs
+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
(
)
;
Write
Preview
Loading…
Cancel
Save