时间:2021-07-01 10:21:17 帮助过:2人阅读
<IfModule mod_headers.c> Header add Access-Control-Allow-Origin "*" </IfModule>
web.config设置下面代码:
.... <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> </customHeaders> </httpProtocol> </system.webServer> ....
黄聪:Access-Control-Allow-Origin,JS跨域解决办法
标签: