This commit is contained in:
Warunee Tamkoo 2025-02-11 10:25:11 +07:00
parent 9c38122e4a
commit ad0973249e

View file

@ -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}`;
}
});