上传文件报错
XMLHttpRequest cannot load --------------------------------------------------------------------------------------------. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
要修改请求方式为get
跨域问题,搜下跨域解决方案