순수한 공상과학연구소

출처: https://ko.javascript.info/cookie

 

쿠키와 document.cookie

 

ko.javascript.info

 

react, axios 요청에서 backend 서버에서 자동으로 cookie 얻기: {withCredentials: true} 쓴다. 

출처: https://stackoverflow.com/questions/43002444/make-axios-send-cookies-in-its-requests-automatically

 

Make Axios send cookies in its requests automatically

I am sending requests from the client to my Express.js server using Axios. I set a cookie on the client and I want to read that cookie from all Axios requests without adding them manually to requ...

stackoverflow.com

 

npm 으로 쿠키 다루기 

출처: https://blog.pumpkin-raccoon.com/80

 

react-cookie 쉽게 사용하기

회원가입과 로그인 같은 인증(auth) 기능을 구현하기 위해서 프론트엔드에서 쿠키에 토큰(jwt)을 저장하는 경우가 많습니다. 저는 그런 경우에 react-cookie를 자주 사용하는데요, 패키지 설명을 읽어

blog.pumpkin-raccoon.com