Skip to content

Commit 0776c42

Browse files
author
xuxiaofei.666
committed
fix: cros cookie
1 parent 46eeda2 commit 0776c42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/fetch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ fetchInstance.interceptors.request.use(config => {
1313
if (store.getters.token) {
1414
config.headers['DS-Token'] = Cookies.get('DS-Token')
1515
}
16+
config.withCredentials = true
1617
return config
1718
}, error => {
1819
console.log(error) // for debug

0 commit comments

Comments
 (0)