前端上传文件有的可以上传有的却失败 No 'Access-Control-Allow-Origin' header is present on the requested resource.
前端上传文件,有的可以上传有的却失败
前端报错:
Access to XMLHttpRequest at 'http://XXXX.com.cn/file/upload' from origin 'http://xxxx.com.cn' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is prese...
原创
2020-03-10 18:19:46 ·
928 阅读 ·
0 评论