Skip to content

Commit

Permalink
perf: default not set withCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed May 28, 2019
1 parent 054ed40 commit 9538d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getToken } from '@/utils/auth'
// create an axios instance
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
withCredentials: true, // send cookies when cross-domain requests
// withCredentials: true, // send cookies when cross-domain requests
timeout: 5000 // request timeout
})

Expand Down

0 comments on commit 9538d1b

Please sign in to comment.