Web: Fix cors

This commit is contained in:
genteure 2022-06-09 16:45:07 +08:00
parent dc475681c1
commit ad1ed0e0cc

View File

@ -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 =>
{