From be6d4f2d096aa23664d5ed3080a40f0a8385cc03 Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Sat, 23 Jan 2021 09:22:54 -0600 Subject: [PATCH] Removed SSL. When shipping, we will encourage using Reverse Proxy. --- API/Entities/LibraryType.cs | 4 +++- API/Startup.cs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/API/Entities/LibraryType.cs b/API/Entities/LibraryType.cs index 6061e3e8f..944279a25 100644 --- a/API/Entities/LibraryType.cs +++ b/API/Entities/LibraryType.cs @@ -9,6 +9,8 @@ namespace API.Entities [Description("Comic")] Comic = 1, [Description("Book")] - Book = 2 + Book = 2, + [Description("Webtoon")] + Webtoon = 3 } } \ No newline at end of file diff --git a/API/Startup.cs b/API/Startup.cs index 1aee5cecc..805d280c8 100644 --- a/API/Startup.cs +++ b/API/Startup.cs @@ -45,12 +45,12 @@ namespace API app.UseHangfireDashboard(); } - app.UseHttpsRedirection(); + //app.UseHttpsRedirection(); app.UseRouting(); // Ordering is important. Cors, authentication, authorization - app.UseCors(policy => policy.AllowAnyHeader().AllowAnyMethod().WithOrigins("https://localhost:4200")); + app.UseCors(policy => policy.AllowAnyHeader().AllowAnyMethod().WithOrigins("http://localhost:4200")); app.UseAuthentication();