• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

DB Tables 삭제 후 401 Error

19.08.04 22:32 작성 조회수 233

0

DB 삭제하고 다시 만들었는데 로그인 전에 계속 같은 401 Error가 나와서 원인을 모르겠습니다.

GET http://localhost:3065/api/user/ 401 (Unauthorized)

withCredentials: true 설정도 했습니다.

function logOutAPI() {
return axios.post('/user/logout', {}, {
withCredentials: true,
});
}

 

답변 1

답변을 작성해보세요.

0

access control allow origin이 localhost 3000인데요 cors 미들웨어에서 이 부분이 3060이어야 합니다.