diff --git a/frontend/src/apis/getApi.ts b/frontend/src/apis/getApi.ts index c3921340..01825583 100644 --- a/frontend/src/apis/getApi.ts +++ b/frontend/src/apis/getApi.ts @@ -36,7 +36,10 @@ async function withTokenRefresh(callback: () => Promise): Promise { if (decodedPayloadObject.exp * 1000 < Date.now()) { console.log('AccessToken 만료되어 재요청합니다'); - const headers: any = { Authorization: `Bearer ${userToken}` }; + const headers: any = { + 'content-type': 'application/json', + Authorization: `Bearer ${userToken}`, + }; console.log(`Authorization : Bearer ${userToken}`); //새로운 토큰 재발급 userToken = await refreshToken(headers);