remove name="ProxyModule“会导致重复执行

<?xml version="1.0" encoding="utf-8"?>
<!--
  有关如何配置 ASP.NET 应用程序的详细信息,请访问
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <appSettings>
    <add key="DomainProxy1" value="http://e3api.lcsyzx.cn/api/"/>
    <add key="DomainProxy" value="http://localhost:14333/api/"/>
  </appSettings>
  <system.web>
    <customErrors mode="Off"/>
    <compilation debug="true" targetFramework="4.5"/>
    <httpRuntime targetFramework="4.5"/>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>

      <!--<remove name="ProxyModule"/>  会导致重复执行-->
      <add name="ProxyModule" type="XDomainProxy.DomainProxy,XDomainProxy"/>
      
    </modules>
  </system.webServer>
</configuration>
原文地址:https://www.cnblogs.com/shiningrise/p/6132220.html