Skip to content

Commit aeec22a

Browse files
Merge pull request #23 from IgniteUI/IKizirian/fix-static-https-for-prod
In prod behind loadbalancers, the application server is still running HTTP
2 parents f0e828d + 7ac1d4c commit aeec22a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NorthwindCRUD/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
c.PreSerializeFilters.Add((swagger, httpReq) =>
158158
{
159159
// Adding server base address in the generated file relative to the server's host
160-
swagger.Servers = new List<OpenApiServer> { new OpenApiServer { Url = $"{httpReq.Scheme}://{httpReq.Host.Value}" } };
160+
swagger.Servers = new List<OpenApiServer> { new OpenApiServer { Url = $"https://{httpReq.Host.Value}" } };
161161
});
162162
});
163163

0 commit comments

Comments
 (0)