From 1bce6cf0d6e6116d3ea832d3c31972e75122a40c Mon Sep 17 00:00:00 2001 From: Link Date: Tue, 22 Dec 2020 16:22:52 +0800 Subject: [PATCH] fix: cross-protocol request to actively set cookies --- src/utils/http.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/http.ts b/src/utils/http.ts index cd1c0567..cbceaa24 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -17,6 +17,7 @@ const http: AxiosInstance = Axios.create({ http.interceptors.request.use( config => { + config.headers.Cookie = document.cookie return config }, error => {