Skip to content

Commit

Permalink
Merge pull request #36 from Choco-Express/dev
Browse files Browse the repository at this point in the history
제발
  • Loading branch information
taejun0 authored Sep 5, 2024
2 parents b715408 + c2d472c commit 610a7c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apis/instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ instance.interceptors.request.use(
(config) => {
const accessToken = Cookies.get('access_token'); // 요청을 보낼 때마다 쿠키에서 액세스 토큰을 가져옵니다.
if (accessToken) {
config.headers['Authorization'] = `Bearer ${accessToken}`; // 액세스 토큰이 있으면 헤더에 추가합니다.
config.headers.common['Authorization'] = `Bearer ${accessToken}`; // 액세스 토큰이 있으면 헤더에 추가합니다.
config.withCredentials = true;
}

Expand Down

0 comments on commit 610a7c9

Please sign in to comment.