axios跨域訪問錯誤(vue.js)

文章來自:源碼在線https://www.shengli.me/javascript/287.html   1、假如訪問的接口地址爲 http://www.test.com/apis/index.php  (php api 接口) 2、而開發地址爲http://127.0.0.1:8080,當axios發起請求時,出現如下錯誤: Failed to load http://www.test.com
相關文章
相關標籤/搜索