Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling HTTPS by default for development #50

Merged
merged 1 commit into from
Oct 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions AspNetCoreVueStarter.csproj
Original file line number Diff line number Diff line change
@@ -13,14 +13,14 @@
<Copyright>MIT 2020 Software Ateliers</Copyright>
<AssemblyName>AspNetCoreVueStarter</AssemblyName>
<RootNamespace>AspNetCoreVueStarter</RootNamespace>
<Version>2.5.1</Version>
<AssemblyVersion>2.5.1.0</AssemblyVersion>
<FileVersion>2.5.1.0</FileVersion>
<Version>2.5.1</Version>
<AssemblyVersion>2.5.1.0</AssemblyVersion>
<FileVersion>2.5.1.0</FileVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.8" />
<PackageReference Include="VueCliMiddleware" Version="3.1.1" />
<PackageReference Include="VueCliMiddleware" Version="3.1.2" />
</ItemGroup>

<ItemGroup>
3 changes: 2 additions & 1 deletion Startup.cs
Original file line number Diff line number Diff line change
@@ -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();