From 5441ea196175b8a722632ad0b64ec8ff33209373 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 11 十一月 2026 09:40:39 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/APIGetway
---
appsettings.json | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/appsettings.json b/appsettings.json
index 6e9de47..e75c39a 100644
--- a/appsettings.json
+++ b/appsettings.json
@@ -6,15 +6,27 @@
}
},
"AllowedHosts": "*",
+ "Gateway": {
+ "FileFilter": {
+ "Enabled": true,
+ "BlockedExtensions": [ ".dll", ".log" ]
+ },
+ "ErrorPage": {
+ "Enabled": true,
+ "LogPageEnabled": true,
+ "LogPageDirectory": "PageLogs"
+ }
+ },
"ReverseProxy": {
"Routes": {
"mes-backend": {
"ClusterId": "mes-backend",
+ "CorsPolicy": "frontend-dev",
"Match": {
- "Path": "/API_NW/{**catch-all}"
+ "Path": "/API/{**catch-all}"
},
"Transforms": [
- { "PathRemovePrefix": "/API_NW" }
+ //{ "PathRemovePrefix": "/API" }
]
}
},
@@ -22,10 +34,13 @@
"mes-backend": {
"Destinations": {
"backend": {
- "Address": "http://localhost:8090"
+ "Address": "http://localhost:81"
}
}
}
}
+ // 娉ㄦ剰锛歒ARP 娌℃湁 "CorsPolicies" 杩欎釜閰嶇疆鑺傦紙鍐欎簡涔熶細琚潤榛樺拷鐣ワ級銆�
+ // 璺敱涓婄殑 "CorsPolicy" 鍙槸绛栫暐鍚嶏紝鐪熸鐨勭瓥鐣ュ畾涔夊湪 Program.cs 鐨� AddCors(...) 閲岋紝
+ // 涓ゅ鍚嶅瓧蹇呴』瀹屽叏涓�鑷淬��
}
-}
\ No newline at end of file
+}
--
Gitblit v1.9.1