配置web.config加入以下信息

  <system.webServer>
    <httpProtocol>
      <customHeaders>
        <remove name="X-Powered-By"/>
        <add name="Access-Control-Allow-Origin" value="*"/>
        <add name="Access-Control-Allow-Headers" value="*"/>
        <add name="Access-Control-Allow-Methods" value="*"/>
        <add name="X-Powered-By" value="*"/>
      </customHeaders>
    </httpProtocol>
</system.webServer>

 

By charlie

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注