Skip to content

Commit

Permalink
Fix: #303 로그인 요청에 withCredentials 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Seok93 committed Dec 18, 2024
1 parent cb6b923 commit c927abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/authService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function checkNicknameDuplicate(nicknameForm: CheckNicknameForm, ax
* @returns {Promise<AxiosResponse<void>>}
*/
export async function login(loginForm: UserSignInForm, axiosConfig: AxiosRequestConfig = {}) {
return defaultAxios.post('user/login', loginForm, axiosConfig);
return defaultAxios.post('user/login', loginForm, { ...axiosConfig, withCredentials: true });
}

/**
Expand Down

0 comments on commit c927abd

Please sign in to comment.