Allow cross origin.

This commit is contained in:
xuef
2023-11-27 11:29:26 +00:00
parent 1737f968b0
commit 7f97861568
2 changed files with 39 additions and 0 deletions
+2
View File
@@ -1,4 +1,5 @@
using System.Reflection;
using Aiursoft.ChessServer.Middlewares;
using Aiursoft.Scanner;
using Aiursoft.WebTools.Models;
@@ -25,6 +26,7 @@ public class Startup : IWebStartup
public void Configure(WebApplication app)
{
app.UseMiddleware<AllowCrossOriginMiddleware>();
app.UseRouting();
app.MapDefaultControllerRoute();
}