Skip to content

Commit

Permalink
fix: add usehsts for production use.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaxelr committed Dec 16, 2019
1 parent 4f314c4 commit 3c0d5a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Content/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
else
{
app.UseExceptionHandler("/Home/Error");
app.UseHsts();
}

app.UseHttpsRedirection();
Expand Down

0 comments on commit 3c0d5a7

Please sign in to comment.