From 18d1f45193e34e00fc1b6f65b8596ddb29c5267d Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期二, 24 十二月 2024 15:32:43 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/MeiRuiAn/HuaiAn

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/CorsSetup.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/CorsSetup.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/CorsSetup.cs"
index e449a0e..417610d 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/CorsSetup.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/CorsSetup.cs"
@@ -24,14 +24,14 @@
 
             services.AddCors(c =>
             {
-                if (!AppSettings.app(new string[] { "Cors", "EnableAllIPs" }).ObjToBool())
+                if (!AppSettings.Get(new string[] { "Cors", "EnableAllIPs" }).ObjToBool())
                 {
-                    c.AddPolicy(AppSettings.app(new string[] {"Cors", "PolicyName" }),
+                    c.AddPolicy(AppSettings.Get(new string[] {"Cors", "PolicyName" }),
 
                         policy =>
                         {
                             policy
-                            .WithOrigins(AppSettings.app(new string[] { "Cors", "IPs" }).Split(','))
+                            .WithOrigins(AppSettings.Get(new string[] { "Cors", "IPs" }).Split(','))
                             .AllowAnyHeader()//Ensures that the policy allows any header.
                             .AllowAnyMethod();
                         });
@@ -39,7 +39,7 @@
                 else
                 {
                     //鍏佽浠绘剰璺ㄥ煙璇锋眰
-                    c.AddPolicy(AppSettings.app(new string[] { "Cors", "PolicyName" }),
+                    c.AddPolicy(AppSettings.Get(new string[] { "Cors", "PolicyName" }),
                         policy =>
                         {
                             policy

--
Gitblit v1.9.3