From ddfe087203002ad6f231ac6f52583ae363b51e29 Mon Sep 17 00:00:00 2001 From: MarcWieland Date: Fri, 25 Jul 2025 01:35:09 +0200 Subject: [PATCH] Added cors2 --- frontend/src/pages/QuizPage.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/QuizPage.jsx b/frontend/src/pages/QuizPage.jsx index 0c9dc64..39fc058 100644 --- a/frontend/src/pages/QuizPage.jsx +++ b/frontend/src/pages/QuizPage.jsx @@ -31,7 +31,7 @@ useEffect(() => { setQuestions(customQuestions); sessionStorage.setItem("quiz_questions", JSON.stringify(customQuestions)); } else { - fetch(`http://localhost:3000/api/questions/${mode}`) + fetch(`/api/questions/${mode}`) .then((res) => res.json()) .then((data) => { const shuffled = data.sort(() => 0.5 - Math.random()).slice(0, 30);