diff --git a/src/views/home.vue b/src/views/home.vue index 6691dae..3546595 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -170,11 +170,10 @@ onMounted(async () => { await axios .post( `${config.API.sso}/kcauth`, - {}, + { uid }, { headers: { "Content-Type": "application/json", - Cookie: `uid=${uid};`, }, withCredentials: true, // Include cookies with the request } @@ -200,7 +199,7 @@ onMounted(async () => { if (location.hostname == "hrms.chin.in.th") { router.push("/sso"); } else { - // window.location.href = `${config.API.URL_SSO}`; + window.location.href = `${config.API.URL_SSO}`; } });