1.node npm install cors
配置下cors 要设置指定的域
app.use(cors({
origin: 'http://a.com',
credentials: true
}))
2.vue axios
axios.defaults.withCredentials = true
x-radish 2017-03-29 09:44 原文
1.node npm install cors
配置下cors 要设置指定的域
app.use(cors({
origin: 'http://a.com',
credentials: true
}))
2.vue axios
axios.defaults.withCredentials = true