From c0ac5feebbb2ba3cfe9f4a7eaebe8fb4ece40f6f Mon Sep 17 00:00:00 2001 From: Kash Javed Date: Thu, 12 Dec 2024 11:56:28 +0000 Subject: [PATCH] add the xForwadedProto option to forwardedHeaders config --- .../Infrastructure/ApplicationBuilderExtensions.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/end-user/src/gpconnect-appointment-checker/Core/Configuration/Infrastructure/ApplicationBuilderExtensions.cs b/modules/end-user/src/gpconnect-appointment-checker/Core/Configuration/Infrastructure/ApplicationBuilderExtensions.cs index 92a73538..c828f5d5 100644 --- a/modules/end-user/src/gpconnect-appointment-checker/Core/Configuration/Infrastructure/ApplicationBuilderExtensions.cs +++ b/modules/end-user/src/gpconnect-appointment-checker/Core/Configuration/Infrastructure/ApplicationBuilderExtensions.cs @@ -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)