We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0e828d + 7ac1d4c commit aeec22aCopy full SHA for aeec22a
NorthwindCRUD/Program.cs
@@ -157,7 +157,7 @@
157
c.PreSerializeFilters.Add((swagger, httpReq) =>
158
{
159
// 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}" } };
+ swagger.Servers = new List<OpenApiServer> { new OpenApiServer { Url = $"https://{httpReq.Host.Value}" } };
161
});
162
163
0 commit comments