Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f27433a277 | |||
| 4954ead02d | |||
| 7294e5470f | |||
| 79eebea7b1 |
@@ -27,6 +27,13 @@ app.UseHealthChecks("/health", new HealthCheckOptions
|
||||
});
|
||||
|
||||
app.MapStaticAssets();
|
||||
app.Use((context, next) =>
|
||||
{
|
||||
if (context.Request.Host.Value!.Contains("midrandbooks.co.za", StringComparison.OrdinalIgnoreCase))
|
||||
context.Request.Scheme = "https";
|
||||
|
||||
return next();
|
||||
});
|
||||
app.UseCookiePolicy();
|
||||
|
||||
app.UseAuthentication();
|
||||
|
||||
Reference in New Issue
Block a user