codestates / codestates/BanThing

[Error Handling] 클라이언트에서 document.cookie 등으로 쿠키 조작을 할 수 없는 문제

Open
#216 0 comments 0 reactions 1 assignee Claimed by @greenheadHQ View on GitHub
client error solved
Dominant language
TypeScript
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### 어떤 에러인가요?
클라이언트에서 document.cookie를 사용해서 쿠키를 확인하거나 또는 관련 작업이 되지 않는 심각한 에러입니다.

### 에러 핸들링 방법
서버에서 쿠키를 전송할 때 `Set-Cookie` 설정의 `httpOnly` 속성이 `true`로 되어있을 시,클라이언트에서는 `document.cookie`를 통해 쿠키를 볼수도, 조작할 수도 없다고 합니다. (보안상의 이슈로)
스크린샷 2022-03-01 오후 4 13 02

### 에러 핸들링을 위해 참고한 레퍼런스 링크
[모던 자바스크립트](https://ko.javascript.info/cookie#ref-1502)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.