mirror of https://github.com/halo-dev/halo-admin
[release-2.2] fix: native login box pops up when the session expires (#837)
This is an automated cherry-pick of #836 /assign JohnNiang ```release-note 防止浏览器弹出原生登录框 ```pull/842/head
parent
561b8da237
commit
d40b620b2b
|
@ -100,6 +100,8 @@ axiosInstance.interceptors.response.use(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
axiosInstance.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";
|
||||||
|
|
||||||
const apiClient = setupApiClient(axiosInstance);
|
const apiClient = setupApiClient(axiosInstance);
|
||||||
|
|
||||||
function setupApiClient(axios: AxiosInstance) {
|
function setupApiClient(axios: AxiosInstance) {
|
||||||
|
|
Loading…
Reference in New Issue