Merge pull request 'Removed https failsafe' (#92) from cart into main
Reviewed-on: #92
This commit was merged in pull request #92.
This commit is contained in:
@@ -27,13 +27,6 @@ app.UseHealthChecks("/health", new HealthCheckOptions
|
|||||||
});
|
});
|
||||||
|
|
||||||
app.MapStaticAssets();
|
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.UseCookiePolicy();
|
||||||
|
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
|
|||||||
Reference in New Issue
Block a user