mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-23 15:30:34 -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")]
|
[Description("Comic")]
|
||||||
Comic = 1,
|
Comic = 1,
|
||||||
[Description("Book")]
|
[Description("Book")]
|
||||||
Book = 2
|
Book = 2,
|
||||||
|
[Description("Webtoon")]
|
||||||
|
Webtoon = 3
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user