From f5fe6aaf2cf1015be3d26c863d5d47a5563e84a4 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Fri, 5 Aug 2022 15:39:24 +0800 Subject: [PATCH] x --- IRaCIS.Core.API/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRaCIS.Core.API/Startup.cs b/IRaCIS.Core.API/Startup.cs index f2445ef9c..75c166a39 100644 --- a/IRaCIS.Core.API/Startup.cs +++ b/IRaCIS.Core.API/Startup.cs @@ -228,7 +228,7 @@ namespace IRaCIS.Core.API //文件伺服 必须带Token 访问 //app.UseIRacisHostStaticFileStore(env); - //app.UseCors(t => t.WithOrigins(new string[] { "null" }).AllowAnyMethod().AllowAnyHeader().AllowCredentials()); + app.UseCors(t => t.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader().AllowCredentials()); app.UseEndpoints(endpoints => {