其他分享
首页 > 其他分享> > webconfig 修改跨域配置

webconfig 修改跨域配置

作者:互联网

  <system.webServer>
    <httpProtocol>
      <customHeaders>
        <add name="Access-Control-Allow-Methods" value="OPTIONS,POST,GET"/>
        <add name="Access-Control-Allow-Headers" value="x-requested-with,content-type"/>
        <add name="Access-Control-Allow-Origin" value="*" />
      </customHeaders>
    </httpProtocol>
  </system.webServer>

标签:webconfig,配置,跨域,修改
来源: https://www.cnblogs.com/WeiYongZhi/p/12111473.html