작성한 질문수
React로 NodeBird SNS 만들기
5-12. passport 총정리와 실제 로그인
작성
·
136
0
아직 로그인이 유지가 안되는게 맞나여
알려주시면 감사여 ~!
답변 4
1
https://github.com/hyunsokstar/node_bird_11/blob/master/back/index.js https://github.com/hyunsokstar/node_bird_11/blob/master/front/sagas/user.js
두파일에 withCredentials 설정은 되어 있는데여 로그인 후에 새로고침을 하면 다시 로그인입려곺이 출력되여 혹시 다른 문제는 없을까여 ?
axios에서 withCredentials: true와 cors에서 credentials: true를 넣어주어야 합니다.
네 답변 감사여~! 알려주셔서 ㄳ~!
SSR이 적용 안 돼서 그렇네요. 아직 SSR 강좌까지 안 보셨죠? 그걸 보시면 됩니다.