一、chrome浏览器点击下载图片 报错信息如下:
Access to image at 'http://xxx-oss-cn-xxx.aliyuncs.com/2021/02/01/.JPG/7kAJupbWP5..jpg?Expires=2556115200&OSSAccessKeyId=xxx=daKf%2FmwiLVF%2FYjb46dy9oC%2Fi1sE%3D' from origin 'http://f2e.prepub.xxx.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.请求的资源上不存在“Access Control Allow Origin”标头
二、找运维配置
三、配置之后发现偶尔能下载大部分还是会报跨域错误
最简捷的方式就是让前端把域名改成https开头的,前提是后端也支持https域名