Skip to content

Commit

Permalink
Merge pull request #292 from depromeet/feature/#255
Browse files Browse the repository at this point in the history
이미지 업로드 이슈 수정
  • Loading branch information
YOOJS1205 authored Feb 13, 2024
2 parents 81b1ebf + 9b4d305 commit 46a8056
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/api/api-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ axiosInstance.interceptors.request.use(
if (
accessToken &&
!config.headers['Authorization'] &&
config.url !== TOKEN_REFRESH_URL
(config.url !== TOKEN_REFRESH_URL ||
!config.url?.includes(
process.env.NEXT_PUBLIC_NCLOUD_STORAGE_URL as string,
))
) {
config.headers['Authorization'] = `Bearer ${accessToken}`;
return config;
}

// 쿠키에 토큰 전부 없을 시 로그인 페이지로 이동
Expand Down

0 comments on commit 46a8056

Please sign in to comment.