//在服务的WebConfig文件中添加以下代码即可
//如节点已存在请去掉
<system.webServer>
<httpProtocol> <customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Methods" value="POST" />
<add name="Access-Control-Allow-Headers" value="content-type" />
</customHeaders> </httpProtocol>
</system.webServer>