保誠-保戶業務員媒合平台
Tomas
2023-08-05 965db8f11b4ce3df0c0604cc5f008d42aa6db7d4
PAMapp/shared/services/httpClient.ts
@@ -10,11 +10,14 @@
  '/eService/authenticate',
  '/login/validate/get_img_code',
  '/login/validate/verify_img_code',
  '/api/access_analysis/insert'
];
const BASE_URL = process.env.BASE_URL;
export const http = axios.create({
  baseURL: process.env.BASE_URL,
  withCredentials: true
  baseURL: BASE_URL,
  withCredentials: true,
});
let apiNumber = 0;
@@ -48,7 +51,8 @@
function addHttpHeader(config: AxiosRequestConfig): void {
  config.headers = {
    Authorization: 'Bearer ' + localStorage.getItem('id_token')
    Authorization: 'Bearer ' + localStorage.getItem('id_token'),
    'content-type': 'application/json'
  }
}