Skip to content

Commit

Permalink
chore: secure 요청 헤더 속성 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
HeoJiye committed Mar 11, 2024
1 parent 52938a5 commit 7ddc272
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/src/business/hooks/auth/useKakaoOAuthRedirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7ddc272

Please sign in to comment.