Fix
This commit is contained in:
1 parent
779d493513
commit
613e1fbf47
1 file changed
+1
-1
@@ -112,7 +112,7 @@ if (!app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseExceptionHandler("/Error", createScopeForErrors: true);
|
||||
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
|
||||
app.UseHsts();
|
||||
if (bool.Parse(Environment.GetEnvironmentVariable("ENABLE_HSTS") ?? "false")) app.UseHsts();
|
||||
}
|
||||
app.UseStatusCodePagesWithReExecute("/not-found");
|
||||
app.UseHttpsRedirection();
|
||||
|
||||
Reference in new issue
Block a user