From d037f94e6047d6ed3e41e29301620e2ffabf106f Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期三, 15 六月 2022 14:17:31 +0800
Subject: [PATCH] 组织架构、用户清单接口开发提交(不包含导入导出)
---
VueWebApi/Web.config | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
diff --git a/VueWebApi/Web.config b/VueWebApi/Web.config
index 34e6f87..51a7ecc 100644
--- a/VueWebApi/Web.config
+++ b/VueWebApi/Web.config
@@ -12,7 +12,10 @@
</configSections>
<appSettings>
<!--鏁版嵁搴撻摼鎺ラ厤缃�-->
- <add key="DBServer" value="Data Source=.;Initial Catalog=vmes;Integrated Security=True" />
+ <!--鏈湴鐜-->
+ <!--<add key="DBServer" value="Data Source=.;Initial Catalog=vmes;Integrated Security=True" />-->
+ <!--鏈嶅姟鍣ㄧ幆澧�-->
+ <add key="DBServer" value="Data Source=121.196.36.24;Initial Catalog=vmes;User ID=sa;Password=xkd@20220602"/>
<!--redis鏁版嵁搴撻摼鎺ラ厤缃甶p-->
<add key="RedisConnIp" value="127.0.0.1" />
<!--redis鏁版嵁搴撻摼鎺ラ厤缃鍙e彿-->
@@ -29,6 +32,29 @@
<httpRuntime targetFramework="4.6.1" />
</system.web>
<system.webServer>
+ <security>
+ <requestFiltering>
+ <!--涓昏鏄痬axAllowedContentLength灞炴��-->
+ <requestLimits maxAllowedContentLength="2147483647" maxQueryString="102400"/>
+ </requestFiltering>
+ </security>
+ <httpProtocol>
+ <customHeaders>
+ <add name="Access-Control-Allow-Origin" value="*"/>
+ <add name="Access-Control-Allow-Headers" value="Content-Type"/>
+ <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS"/>
+ </customHeaders>
+ </httpProtocol>
+ <modules runAllManagedModulesForAllRequests="true"/>
+ <validation validateIntegratedModeConfiguration="false"/>
+ <staticContent>
+ <remove fileExtension=".woff"/>
+ <remove fileExtension=".woff2"/>
+ <remove fileExtension=".json"/>
+ <mimeMap fileExtension=".woff" mimeType="application/x-font-woff"/>
+ <mimeMap fileExtension=".woff2" mimeType="application/font-woff2"/>
+ <mimeMap fileExtension=".json" mimeType="application/json"/>
+ </staticContent>
<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<remove name="OPTIONSVerbHandler" />
--
Gitblit v1.9.3