From 7ddc272b6d267dde42e6232eda25fb9ec3719d2e Mon Sep 17 00:00:00 2001 From: HeoJiye Date: Mon, 11 Mar 2024 17:16:57 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20secure=20=EC=9A=94=EC=B2=AD=20?= =?UTF-8?q?=ED=97=A4=EB=8D=94=20=EC=86=8D=EC=84=B1=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/business/hooks/auth/useKakaoOAuthRedirect.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/business/hooks/auth/useKakaoOAuthRedirect.ts b/frontend/src/business/hooks/auth/useKakaoOAuthRedirect.ts index cd0452b8..42d51cff 100644 --- a/frontend/src/business/hooks/auth/useKakaoOAuthRedirect.ts +++ b/frontend/src/business/hooks/auth/useKakaoOAuthRedirect.ts @@ -9,13 +9,11 @@ export function useKakaoOAuthRedirect() { const navigate = useNavigate(); const code = new URLSearchParams(window.location.search).get('code'); - const headerOptions = isProdctionMode() ? { SameSite: 'None', Secure: true } : {}; - const login = async () => { const res = await axios.get(KAKAO_LOGIN_URL, { params: { code }, withCredentials: true, - headers: headerOptions, + headers: isProdctionMode() ? { SameSite: 'None' } : {}, }); if (!res || res.status !== 200) {