[JavaScript, React] 쿠키 cookie 다루기2021. 11. 1. 15:12
출처: 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
'Development > JavaScript' 카테고리의 다른 글
| [JavaScript] event.preventDefault() 간단 설명 😊/ preventDefault란 (0) | 2021.08.19 |
|---|---|
| [JavaScript] npm 소개와 설치 (0) | 2021.07.21 |
| [Caniuse.com Site] Caniuse.com, CSS, HTML5 등 브라우저에서 사용할 수 있는 함수 검색 (0) | 2021.02.14 |
| [MDN Site] MDN Web docs site (0) | 2021.02.03 |