Commit e79652bb authored by xuezj's avatar xuezj

发送cookie

parent 9da636e7
...@@ -16,6 +16,7 @@ instance.interceptors.request.use(function (config) { ...@@ -16,6 +16,7 @@ instance.interceptors.request.use(function (config) {
if (!config.headers['Content-Type']) { if (!config.headers['Content-Type']) {
config.headers['Content-Type'] = 'application/x-www-form-urlencoded' config.headers['Content-Type'] = 'application/x-www-form-urlencoded'
} }
config.withCredentials = true;
return config; return config;
}, function (error) { }, function (error) {
// 对请求错误做些什么 // 对请求错误做些什么
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment