Browse Source

added https redirection

dev
Benjamin Arhen 1 year ago
parent
commit
3f627fcf34
  1. 2
      Server/Program.cs

2
Server/Program.cs

@ -9,6 +9,7 @@ using Biskilog_Accounting.ServiceRepo;
using Biskilog_Accounting.Shared.Interfaces; using Biskilog_Accounting.Shared.Interfaces;
using Biskilog_Accounting.Server.Services; using Biskilog_Accounting.Server.Services;
using Biskilog_Accounting.Server.POSModels; using Biskilog_Accounting.Server.POSModels;
using Microsoft.AspNetCore.Builder;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
@ -105,6 +106,7 @@ else
app.UseExceptionHandler("/Error"); 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. // 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.UseHsts();
app.UseHttpsRedirection();
} }
app.UseHttpsRedirection(); app.UseHttpsRedirection();

Loading…
Cancel
Save