codestates / codestates/Pida

4.26 로그인, 회원가입 관련 에러

Open
#66 0 comments 1 reaction 1 assignee Claimed by @suxxzzy View on GitHub
Server 에러핸들링
Dominant language
JavaScript
Stars
4
Forks
4
PR merge metrics
No merged PRs in 30d

Description

# ISSUE
* Group: `client`, `server`, `sr`
* Type: `bug`, `feature`, `delete`
* Detail:

# TODO
- [ ] Job1
- [ ] Job2
- [ ] Job3

## ref
https://velog.io/@ooooorobo/%EB%8B%A4%EB%A5%B8-%EB%8F%84%EB%A9%94%EC%9D%B8%EC%97%90-%EC%BF%A0%ED%82%A4-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0#%ED%94%84%EB%A1%A0%ED%8A%B8%EC%97%94%EB%93%9C%EC%97%90%EC%84%9C-ssl-%EC%9D%B8%EC%A6%9D%EC%84%9C-%EB%AC%B4%EC%8B%9C%ED%95%98%EA%B8%B0

클라이언트:
withcredentials: true
*로그인 할 때도 필요한가...

서버:
cors({origin: http://localhost:3000, credentials: true})

res.cookie('accesstoken',accesstoken,{
httpOnly:true,
sameSite: 'none',
domain:'*',
//secure:true,
})

secure:true => 결국 HTTPS 배포로 가야한다.
현재는 http 배포 했기 때문에, 이거 설정해버리면 쿠키 전송에 실패할 수 있다.

잠정 결론:
1. SSL 인증서 무시하기 ---- 일단은 이거 쓰고. (또는)
2. //secure:true, samesite none, 주석처리.

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.