yl
2022-06-15 d037f94e6047d6ed3e41e29301620e2ffabf106f
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数据库链接配置ip-->
     <add key="RedisConnIp" value="127.0.0.1" />
     <!--redis数据库链接配置端口号-->
@@ -29,6 +32,29 @@
    <httpRuntime targetFramework="4.6.1" />
  </system.web>
  <system.webServer>
     <security>
        <requestFiltering>
           <!--主要是maxAllowedContentLength属性-->
           <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" />