This commit is contained in:
yonghyon
2024-03-08 09:39:24 +09:00
parent b089b218e3
commit 2a3f5b4b85
6 changed files with 41 additions and 2 deletions

View File

@@ -105,11 +105,13 @@ export const TAxios = (
const executeRequest = (accessToken, getState) => {
const httpHeader = getState().common.httpHeader;
const {mbr_no, deviceId} = getState().common.appStatus;
const AUTHORIZATION = { headers: {...httpHeader} };
if (accessToken) {
AUTHORIZATION.headers["lgsp_auth"] = accessToken;
}
AUTHORIZATION.headers["dvc_id"] = deviceId;
if (typeof window === "object") {
let url = Array.isArray(baseUrl) ? getUrl(getState, baseUrl[0]) : getUrl(getState, baseUrl);