Commit e79652bb authored by xuezj's avatar xuezj

发送cookie

parent 9da636e7
......@@ -16,6 +16,7 @@ instance.interceptors.request.use(function (config) {
if (!config.headers['Content-Type']) {
config.headers['Content-Type'] = 'application/x-www-form-urlencoded'
}
config.withCredentials = true;
return config;
}, 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