Removed SSL. When shipping, we will encourage using Reverse Proxy.
This commit is contained in:
parent
18385a4f80
commit
be6d4f2d09
2 changed files with 5 additions and 3 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue