쿠키와 보안(가벼운 학습 정리)

문제 정의 및 찾아보기

https://nsinc.tistory.com/121

  1. Cookie는 왜 보안에 취약한가?
  2. 그러면 HttpOnly를 nest 환경에서 어떻게 적용할 것인가?
  3. Secure Cookie를 nest 환경에서 어떻게 적용할 수 있을까?

Cookie 옵션에 대한 이해

https://jake-seo-dev.tistory.com/377

export const cookieConfig = {
  production: {
    httpOnly: true,
    secure: true,
    sameSite: 'strict',
    path: '/',
  },
  development: {
    httpOnly: true,
    secure: false,
    sameSite: 'lax',
    path: '/',
  },
};

쿠키를 Nest에 적용해보자

https://velog.io/@ldhbenecia/NestJS-Cookie를-활용한-인증・인가-처리

https://suloth.tistory.com/22