https redirection

broken/ef 1.0.0
Paul Schneider 2 years ago
parent 6c9f29bc56
commit 97eba2390e
1 changed files with 3 additions and 2 deletions

@ -112,11 +112,12 @@ namespace isnd
} }
else else
{ {
// app.UseExceptionHandler("/Home/Error"); app.UseExceptionHandler("/Home/Error");
app.UseDeveloperExceptionPage(); app.UseHsts();
dbContext.Database.Migrate(); dbContext.Database.Migrate();
} }
app.UseHttpsRedirection();
app.UseStatusCodePages().UseStaticFiles().UseAuthentication().UseMvc(routes => app.UseStatusCodePages().UseStaticFiles().UseAuthentication().UseMvc(routes =>
{ {
routes.MapRoute( routes.MapRoute(

Loading…