| | |
| | | '/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; |
| | |
| | | |
| | | function addHttpHeader(config: AxiosRequestConfig): void { |
| | | config.headers = { |
| | | Authorization: 'Bearer ' + localStorage.getItem('id_token') |
| | | Authorization: 'Bearer ' + localStorage.getItem('id_token'), |
| | | 'content-type': 'application/json' |
| | | } |
| | | } |
| | | |