使用的是angular-file-uploadangular页面将图片上传到图片服务器,出现了跨域问题XMLHttpRequest cannot load http://upload.1-1dr.com/fileupload. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://dev.1-1dr.com' is therefore not allowed access.按照CORS的解决方法,服务器端响应添加了Access-Control-Allow-Origin头,但问题还是没解决。想问,是不是angular在上传文件的请求中,也需要带一些参数,才能解决跨域问题?
添加回答
举报
0/150
提交
取消