请教下 vue 跨域 如何设置 让cooike 可以带到服务器
this.$http.post('' + host + '/captcha/reKey', {}, headers).then((response) => {
this.showCurrent(response.data.imgBase)
})
let host = 'http://localhost:3000'
// let host = 'localhost:3000';
// let host = 'http://192.168.10.26:3000'
let headers = {
headers: {
'Content-Type': 'application/json;charset=utf-8'
},
emulateJSON: true
}