mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-24 00:52:23 -04:00
Removed SSL. When shipping, we will encourage using Reverse Proxy.
This commit is contained in:
parent
18385a4f80
commit
be6d4f2d09
@ -9,6 +9,8 @@ namespace API.Entities
|
||||
[Description("Comic")]
|
||||
Comic = 1,
|
||||
[Description("Book")]
|
||||
Book = 2
|
||||
Book = 2,
|
||||
[Description("Webtoon")]
|
||||
Webtoon = 3
|
||||
}
|
||||
}
|
@ -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…
x
Reference in New Issue
Block a user