From cf52ab2a37c9156c5e8622d1db33a0651210e809 Mon Sep 17 00:00:00 2001 From: Aashutosh soni Date: Tue, 14 Nov 2023 18:50:58 +0530 Subject: [PATCH] =?UTF-8?q?Bug=20fixes=F0=9F=9A=80=F0=9F=A7=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/chakra-client/src/layouts/HomePage.jsx | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) 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!");