Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
Remove duplicated ForwardedHeaders middleware usage
Browse files Browse the repository at this point in the history
  • Loading branch information
asvishnyakov committed Feb 24, 2021
1 parent f449e64 commit 1a6a454
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions VirtoCommerce.Storefront/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,10 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseForwardedHeaders();
}
else
{
app.UseExceptionHandler("/error/500");
app.UseForwardedHeaders();
app.UseHsts();
}
// Do not write telemetry to debug output
Expand Down

0 comments on commit 1a6a454

Please sign in to comment.