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.
1 parent ed726f2 commit f18de6dCopy full SHA for f18de6d
EssentialCSharp.Web/Program.cs
@@ -145,6 +145,11 @@ private static void Main(string[] args)
145
});
146
147
WebApplication app = builder.Build();
148
+ app.Use((context, next) =>
149
+ {
150
+ context.Request.Scheme = "https";
151
+ return next(context);
152
+ });
153
154
app.UseForwardedHeaders();
155
@@ -168,11 +173,6 @@ private static void Main(string[] args)
168
173
app.UseAuthorization();
169
174
app.UseMiddleware<ReferralMiddleware>();
170
175
171
- app.Use((context, next) =>
172
- {
- context.Request.Scheme = "https";
- return next(context);
- });
176
177
app.MapRazorPages();
178
app.MapDefaultControllerRoute();
0 commit comments