Skip to content
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

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

westzeroright
Copy link
Contributor

📌 관련 이슈

✨ PR 내용

응답헤더로 cookie set했습니다. httponly, secure 옵션 적용

기존 서버(http) - 프론트(로컬)로 통신하였는데 https로 통신할 예정입니다.
image
image

@westzeroright westzeroright self-assigned this Nov 2, 2024
@westzeroright westzeroright requested a review from ajy9851 November 2, 2024 12:53
Copy link
Contributor

@nove1080 nove1080 left a 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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

else 는 빼고 좋을 것 같아요!

Copy link
Contributor Author

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 =
Copy link
Contributor

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 으로 선언한 이유가 궁금해요

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리다이렉트 페이지 url이랑 같이 보내는 거라서 param에 있는게 좋을 것 같아서요

@westzeroright westzeroright changed the base branch from weekly_9 to weekly_10 November 4, 2024 10:50
@westzeroright westzeroright merged commit e3d6300 into weekly_10 Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants