diff --git a/pointMaster/Program.cs b/pointMaster/Program.cs index ac5b168..92ef3e1 100644 --- a/pointMaster/Program.cs +++ b/pointMaster/Program.cs @@ -63,6 +63,12 @@ if (!app.Environment.IsDevelopment()) app.UseHsts(); } +app.Use((context, next) => +{ + context.Request.Scheme = "https"; + return next(context); +}); + app.UseForwardedHeaders(); app.UseHttpsRedirection(); app.UseStaticFiles();