Skip to content

Commit

Permalink
add the xForwadedProto option to forwardedHeaders config
Browse files Browse the repository at this point in the history
  • Loading branch information
JavedK15 committed Dec 12, 2024
1 parent 1fc6f16 commit c0ac5fe
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ public static void ConfigureApplicationBuilderServices(this IApplicationBuilder
AllowCachingResponses = false
});
});

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

private static void AddResponseHeaders(HttpContext context)
Expand Down

0 comments on commit c0ac5fe

Please sign in to comment.