-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 응답헤더로 cookie set (httponly, secure 적용) #71
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다~
|
||
return ResponseEntity.ok() | ||
.headers(headers) | ||
.body(ApiResponse.with(HttpStatus.OK, "로그인 성공", serviceToken)); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else 는 빼고 좋을 것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
움 그냥 넣을래요! 그게 분리되어 보여서 좋아요~
@@ -63,6 +78,20 @@ public ResponseEntity<ApiResponse<String>> signUpMember( | |||
String serviceToken = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PostMapping("/signup")
public ResponseEntity<ApiResponse<String>> signUpMember(@RequestParam String email, @RequestBody MemberInfoRequest memberInfoRequest)
여기서 email 정보만 RequestParam 으로 선언한 이유가 궁금해요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리다이렉트 페이지 url이랑 같이 보내는 거라서 param에 있는게 좋을 것 같아서요
📌 관련 이슈
✨ PR 내용
응답헤더로 cookie set했습니다. httponly, secure 옵션 적용
기존 서버(http) - 프론트(로컬)로 통신하였는데 https로 통신할 예정입니다.