瀏覽器報錯Failed to load http://10.4.8.7......: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8009' is therefore not allowed access.createError.js?f777:16 Uncaught (in promise) Error: Network Errorat createError (createError.js?f777:16)
at XMLHttpRequest.handleError (xhr.js?14ed:87)在postman測試接口可以返回數(shù)據(jù)
這種bug是什么原因?跨域問題嗎,用的axios,怎么解決呢
紫衣仙女
2019-02-04 08:42:48