From 2f86b5f0c3ad47494886c5794542239bfa26850c Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期六, 15 七月 2023 17:42:11 +0800
Subject: [PATCH] Update#170413: [前端] 串接 /api/access_analysis/insert

---
 PAMapp/shared/services/httpClient.ts |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/PAMapp/shared/services/httpClient.ts b/PAMapp/shared/services/httpClient.ts
index c0b08f2..001821f 100644
--- a/PAMapp/shared/services/httpClient.ts
+++ b/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'
   }
 }
 

--
Gitblit v1.8.0