From 873d50ff63f517ab48b23c3116127ca0d33cfbd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=B8nner=C3=B8d=20Madsen?= Date: Mon, 26 Oct 2020 20:47:20 +0100 Subject: [PATCH] Enabling HTTPS by default for development --- AspNetCoreVueStarter.csproj | 8 ++++---- Startup.cs | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/AspNetCoreVueStarter.csproj b/AspNetCoreVueStarter.csproj index f3884aa..85f1339 100644 --- a/AspNetCoreVueStarter.csproj +++ b/AspNetCoreVueStarter.csproj @@ -13,14 +13,14 @@ MIT 2020 Software Ateliers AspNetCoreVueStarter AspNetCoreVueStarter - 2.5.1 - 2.5.1.0 - 2.5.1.0 + 2.5.1 + 2.5.1.0 + 2.5.1.0 - + diff --git a/Startup.cs b/Startup.cs index 31ca2a8..9aaac7d 100644 --- a/Startup.cs +++ b/Startup.cs @@ -44,9 +44,10 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) app.UseExceptionHandler("/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); - app.UseHttpsRedirection(); } + app.UseHttpsRedirection(); + app.UseStaticFiles(); app.UseSpaStaticFiles();