📜  axios 跨域 http: localhost 禁止 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:24.685000             🧑  作者: Mango

代码示例1
// add the following to avoid axios cross origin issues when in test
axios.defaults.adapter = require('axios/lib/adapters/http')