Redirect http to https
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Arrestanten_planbord
|
||||
public Startup(IConfiguration configuration)
|
||||
{
|
||||
_config = configuration;
|
||||
}
|
||||
}
|
||||
|
||||
// This method gets called by the runtime. Use this method to add services to the container.
|
||||
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
|
||||
@@ -103,6 +103,8 @@ namespace Arrestanten_planbord
|
||||
//app.UseHsts();
|
||||
}
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
|
||||
app.UseHealthChecks("/health");
|
||||
|
||||
app.UseStaticFiles();
|
||||
|
||||
Reference in New Issue
Block a user