Removed SSL. When shipping, we will encourage using Reverse Proxy.

This commit is contained in:
Joseph Milazzo 2021-01-23 09:22:54 -06:00
parent 18385a4f80
commit be6d4f2d09
2 changed files with 5 additions and 3 deletions

View File

@ -9,6 +9,8 @@ namespace API.Entities
[Description("Comic")] [Description("Comic")]
Comic = 1, Comic = 1,
[Description("Book")] [Description("Book")]
Book = 2 Book = 2,
[Description("Webtoon")]
Webtoon = 3
} }
} }

View File

@ -45,12 +45,12 @@ namespace API
app.UseHangfireDashboard(); app.UseHangfireDashboard();
} }
app.UseHttpsRedirection(); //app.UseHttpsRedirection();
app.UseRouting(); app.UseRouting();
// Ordering is important. Cors, authentication, authorization // 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(); app.UseAuthentication();