From 78389519e546d5b366cea83f67df4016a3f6a290 Mon Sep 17 00:00:00 2001
From: chenhaozhe <gaozhechen26@gmail.com>
Date: 星期二, 10 十一月 2026 21:28:29 +0800
Subject: [PATCH] 网关添加 跨域配置

---
 appsettings.json |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/appsettings.json b/appsettings.json
index a13e719..e75c39a 100644
--- a/appsettings.json
+++ b/appsettings.json
@@ -21,6 +21,7 @@
     "Routes": {
       "mes-backend": {
         "ClusterId": "mes-backend",
+        "CorsPolicy": "frontend-dev",
         "Match": {
           "Path": "/API/{**catch-all}"
         },
@@ -38,5 +39,8 @@
         }
       }
     }
+    // 娉ㄦ剰锛歒ARP 娌℃湁 "CorsPolicies" 杩欎釜閰嶇疆鑺傦紙鍐欎簡涔熶細琚潤榛樺拷鐣ワ級銆�
+    // 璺敱涓婄殑 "CorsPolicy" 鍙槸绛栫暐鍚嶏紝鐪熸鐨勭瓥鐣ュ畾涔夊湪 Program.cs 鐨� AddCors(...) 閲岋紝
+    // 涓ゅ鍚嶅瓧蹇呴』瀹屽叏涓�鑷淬��
   }
-}
\ No newline at end of file
+}

--
Gitblit v1.9.1