From 4837024d8cd40e31bb4b95cbeec0ae473dfca4e3 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 11 十一月 2026 16:26:31 +0800
Subject: [PATCH] 新增 目录过滤器。增加对敏感目录的管控。

---
 appsettings.json |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/appsettings.json b/appsettings.json
index a13e719..2b780cb 100644
--- a/appsettings.json
+++ b/appsettings.json
@@ -9,7 +9,18 @@
   "Gateway": {
     "FileFilter": {
       "Enabled": true,
-      "BlockedExtensions": [ ".dll", ".log" ]
+      "BlockedExtensions": [ ".dll", ".log", ".config" ]
+    },
+    "FolderFilter": {
+      "Enabled": true,
+      // BlockedFolders 涓殑key 鍏ㄩ儴閰嶇疆涓哄皬鍐欏瓧姣�
+      "BlockedFolders": {
+        "bin": 1,
+        "obj": 1,
+        "vlog": 1,
+        "dll": 1,
+        "PageLogs": 1
+      }
     },
     "ErrorPage": {
       "Enabled": true,
@@ -21,6 +32,7 @@
     "Routes": {
       "mes-backend": {
         "ClusterId": "mes-backend",
+        "CorsPolicy": "frontend-dev",
         "Match": {
           "Path": "/API/{**catch-all}"
         },
@@ -33,10 +45,13 @@
       "mes-backend": {
         "Destinations": {
           "backend": {
-            "Address": "http://localhost:81"
+            "Address": "http://127.0.0.1:81"
           }
         }
       }
     }
+    // 娉ㄦ剰锛歒ARP 娌℃湁 "CorsPolicies" 杩欎釜閰嶇疆鑺傦紙鍐欎簡涔熶細琚潤榛樺拷鐣ワ級銆�
+    // 璺敱涓婄殑 "CorsPolicy" 鍙槸绛栫暐鍚嶏紝鐪熸鐨勭瓥鐣ュ畾涔夊湪 Program.cs 鐨� AddCors(...) 閲岋紝
+    // 涓ゅ鍚嶅瓧蹇呴』瀹屽叏涓�鑷淬��
   }
-}
\ No newline at end of file
+}

--
Gitblit v1.9.1