-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: Dev 환경 쿠키 이슈 해결 및 관련 로직 개선 #276
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.
리뷰 달았습니당
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.
NoArgsConstructor를 사용했을 때는 문제가 발생될까용?
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.
해당 어노테이션 사용해도 상관없습니다. 수정할게요
|
||
ResponseCookie accessTokenCookie = | ||
ResponseCookie.from(ACCESS_TOKEN_COOKIE_NAME, accessToken) | ||
.path("/") | ||
.secure(true) | ||
.secure(isSecured) | ||
.sameSite(sameSite) | ||
.httpOnly(false) | ||
.httpOnly(true) | ||
.build(); | ||
|
||
ResponseCookie refreshTokenCookie = | ||
ResponseCookie.from(REFRESH_TOKEN_COOKIE_NAME, refreshToken) | ||
.path("/") | ||
.secure(true) | ||
.secure(isSecured) | ||
.sameSite(sameSite) | ||
.httpOnly(false) | ||
.httpOnly(true) | ||
.build(); |
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.
httpOnly를 true로 했을 때 발생되는 이벤트 한번 설명부탁드려도 될까용??
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.
PR 설명에 업데이트해두었습니다~
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 71 New issues |
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.
LGTM
설명확인했습니다!
🌱 관련 이슈
📌 작업 내용 및 특이사항
EnviromentConstants
를 enum에서 일반 상수 문자열의 묶음 클래스로 변경했습니다.enum.values()
등을 사용할 일이 없기 때문에 제거 후 대체했습니다.SpringEnvironmentUtil
구현을 변경했습니다.isXXXProfile()
메서드의 경우 원시형 boolean을 리턴하도록 개선했습니다.SameSite
정책으로 인한 이슈를 해결했습니다.secure
가true
이면SameSite: None
을 사용할 수 있습니다. 해당 사항을 반영했습니다.Allow-Origin
이 와일드카드인 경우setAllowCredentials(true)
가 작동하지 않습니다 (중요).Authorization
헤더가 존재하는 요청을 처리할 수 없습니다.📝 참고사항
📚 기타