如何修改iview upload upload请求类型?

上传文件报错
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

阅读 7.8k
1 个回答

跨域问题,搜下跨域解决方案

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题