Skip to content

Commit

Permalink
remove forwarded headers
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Apr 1, 2024
1 parent ed664a5 commit 44791a1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/web/Jordnaer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
using Jordnaer.Features.UserSearch;
using Jordnaer.Shared;
using Jordnaer.Shared.Infrastructure;
using Microsoft.AspNetCore.HttpOverrides;
using Serilog;
using System.Text.Json.Serialization;
using Jordnaer.Components;
Expand Down Expand Up @@ -109,11 +108,6 @@

app.UseAzureAppConfiguration();

app.UseForwardedHeaders(new ForwardedHeadersOptions
{
ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
});

app.UseAuthentication();
app.UseAuthorization();
app.UseAntiforgery();
Expand Down

0 comments on commit 44791a1

Please sign in to comment.