提交 6be81758 authored 作者: 王鹏飞's avatar 王鹏飞

axios增加withCredentials配置

上级 ee43b332
{
"name": "@ezijing/vue-passport",
"version": "1.0.1",
"version": "1.0.2",
"private": false,
"description": "基于Vue Element-UI的登录注册",
"scripts": {
......
......@@ -2,6 +2,7 @@ import axios from 'axios'
const instance = axios.create({
timeout: 60000,
withCredentials: true,
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论