From c6b1afb0ce0ac380a90ce9c0add298749115fff4 Mon Sep 17 00:00:00 2001 From: willjsw Date: Tue, 22 Apr 2025 01:31:37 +0900 Subject: [PATCH 1/3] =?UTF-8?q?refactor:=20with=20credentials=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/home/home.js | 4 +++- src/context/axiosWithAuthorization.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/home/home.js b/src/app/home/home.js index aa6d596..19381e7 100644 --- a/src/app/home/home.js +++ b/src/app/home/home.js @@ -48,7 +48,10 @@ export default function Home() { try { console.log(localStorage.getItem("accessToken")) const res = await axiosWithAuthorization.get("/members/me"); +<<<<<<< HEAD console.log(res) +======= +>>>>>>> 4b5d0c5 (refactor: with credentials 추가) setProfile({ nickname: res.data.data.nickname || "", profileImageUrl: res.data.data.profileImageUrl || "", @@ -166,7 +169,6 @@ export default function Home() { Authorization: `Bearer ${accessToken}`, }, }); - console.log(`팀(${teamId}) 삭제 성공`); //성공 시 로컬 상태에서 해당 팀 제거 setCards((prevCards) => prevCards.filter((team) => team.teamId !== teamId)); diff --git a/src/context/axiosWithAuthorization.js b/src/context/axiosWithAuthorization.js index 10a683d..d24c583 100644 --- a/src/context/axiosWithAuthorization.js +++ b/src/context/axiosWithAuthorization.js @@ -7,6 +7,7 @@ const axiosWithAuthorization = axios.create({ headers: { "Content-Type": "application/json", }, + withCredentials: true }); //요청 인터셉터 axiosWithAuthorization.interceptors.request.use( From 0e6094c8c2fee4390f584aed4b69cbdc19d3f93a Mon Sep 17 00:00:00 2001 From: willjsw Date: Tue, 22 Apr 2025 02:02:03 +0900 Subject: [PATCH 2/3] =?UTF-8?q?refactor:=20=EC=97=90=EB=9F=AC=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=20=EB=A9=94=EC=84=B8=EC=A7=95=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/project/project.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/project/project.js b/src/app/project/project.js index 264a91b..4773d9e 100644 --- a/src/app/project/project.js +++ b/src/app/project/project.js @@ -510,7 +510,6 @@ export default function Project({projectId}) { return data.content; } catch (error) { console.log(error); - showAlert("error", error.response?.data?.message || "미팅 목록 조회 오류"); return []; } }; From ac6fb69019d153e3ef9efe8dd2f788b87f1c56eb Mon Sep 17 00:00:00 2001 From: willjsw Date: Tue, 22 Apr 2025 02:03:42 +0900 Subject: [PATCH 3/3] =?UTF-8?q?refactor:=20=EB=A6=AC=EB=B2=A0=EC=9D=B4?= =?UTF-8?q?=EC=8A=A4=20=EC=B6=A9=EB=8F=8C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/home/home.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/app/home/home.js b/src/app/home/home.js index 19381e7..fa46076 100644 --- a/src/app/home/home.js +++ b/src/app/home/home.js @@ -48,10 +48,6 @@ export default function Home() { try { console.log(localStorage.getItem("accessToken")) const res = await axiosWithAuthorization.get("/members/me"); -<<<<<<< HEAD - console.log(res) -======= ->>>>>>> 4b5d0c5 (refactor: with credentials 추가) setProfile({ nickname: res.data.data.nickname || "", profileImageUrl: res.data.data.profileImageUrl || "",