Skip to content

Commit

Permalink
fix: cross-protocol request to actively set cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
Linkontoask committed Dec 22, 2020
1 parent dfdb620 commit 1bce6cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const http: AxiosInstance = Axios.create({

http.interceptors.request.use(
config => {
config.headers.Cookie = document.cookie
return config
},
error => {
Expand Down

0 comments on commit 1bce6cf

Please sign in to comment.