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