调试跨域问题解决方案

2019-12-03  本文已影响0人  秒怂的哈士奇爱吃西瓜
image.png

放到 system.webServer 节点下 web.config

<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Content-Type" />
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
</customHeaders>
</httpProtocol>

上一篇下一篇

猜你喜欢

热点阅读