IIS配置跨域请求

1.通过IIS配置 

IIS配置跨域请求_第1张图片

IIS配置跨域请求_第2张图片

2.通过Web.config配置

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

 

你可能感兴趣的:(IIS配置跨域请求)