IIS解决跨域问题

都知道如果不同源直接访问一些图片及文件的话会直接报错跨域解决的方法也很简单如图

点击HTTP响应标头

添加

名称:值
Access-Control-Allow-Credentials:true
Access-Control-Allow-Headers:origin,x-requested-with,content-type
Access-Control-Allow-Methods:POST,GET,OPTIONS
Access-Control-Allow-Origin:*

猜你喜欢

转载自blog.csdn.net/weixin_51326081/article/details/128744997