mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 11:42:22 +08:00
Web: Fix cors
This commit is contained in:
parent
dc475681c1
commit
ad1ed0e0cc
|
@ -128,9 +128,10 @@ namespace BililiveRecorder.Web
|
|||
{
|
||||
const string PAGE404 = "/404.html";
|
||||
|
||||
app.UseMiddleware<BasicAuthMiddleware>();
|
||||
|
||||
app.UseCors().UseWebSockets();
|
||||
app
|
||||
.UseCors()
|
||||
.UseMiddleware<BasicAuthMiddleware>()
|
||||
.UseWebSockets();
|
||||
|
||||
app.Use(static next => async context =>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user