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) {