diff --git a/client/chakra-client/src/layouts/HomePage.jsx b/client/chakra-client/src/layouts/HomePage.jsx index bb50e57..2d31003 100644 --- a/client/chakra-client/src/layouts/HomePage.jsx +++ b/client/chakra-client/src/layouts/HomePage.jsx @@ -304,15 +304,18 @@ export default function HomePage() { useEffect(() => { const getUser = () => { - fetch("http://localhost:5000/auth/login/success", { - method: "GET", - credentials: "include", - headers: { - Accept: "application/json", - "Content-Type": "application/json", - "Access-Control-Allow-Credentials": true, - }, - }) + fetch( + "https://soc.centralindia.cloudapp.azure.com/auth/login/success", + { + method: "GET", + credentials: "include", + headers: { + Accept: "application/json", + "Content-Type": "application/json", + "Access-Control-Allow-Credentials": true, + }, + } + ) .then((response) => { if (response.status === 200) return response.json(); throw new Error("authentication has been failed!");