From 2330eb25d958df5a8e15bcc9f452ac703323d159 Mon Sep 17 00:00:00 2001
From: realtradam <github@tradam.dev>
Date: Wed, 22 May 2024 14:58:01 -0400
Subject: fix auth

---
 src/routes/index.jsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/routes/index.jsx')

diff --git a/src/routes/index.jsx b/src/routes/index.jsx
index 1b778ef..df46102 100644
--- a/src/routes/index.jsx
+++ b/src/routes/index.jsx
@@ -9,9 +9,11 @@ import Layout from "../components/Layout";
 export default function index()
 {
 	const [userData, setUserData] = useState({});
-	const url = "/api/v1/auth/data";
+	const url = "http://localhost:3000/api/v1/auth/data";
 	useEffect(() => {
-		fetch(url).then((response) => {
+		fetch(url, {
+  credentials: "include"
+}).then((response) => {
 		if(response.ok) {
 			return response.json();
 		}
-- 
cgit v1.2.3

