前端能正常访问图片,但无法下载

因为路径不经过业务代码,所以需要在nginx配置跨域

代码:
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
add_header Access-Control-Expose-Headers 'Content-Disposition';







![[golang gin框架] 40.Gin商城项目-微服务实战之Captcha验证码微服务](https://img-blog.csdnimg.cn/img_convert/57a89a899894d60f20d39f5c84fde3b5.png)


![学习babylon.js --- [1] 初次体验和安装](https://img-blog.csdnimg.cn/f9a69cb3cb214b75af9ba4dbffa98961.png)








